I used LPC1765 in the system, the program is as follows:
#include<math.h>
...
int main(void)
{ ...
float a,b,c;
b = 3.1;
a = log(b);
c = sin(a);
}
the program is compiled and linked with no error, but "a" and "c" can't get the correct value. who could help me? thanks a lot!
If subsequent code does not explicitly use these variables, the compiler is free to remove them from the generated code. How does you disassembly view look like?