Hi Bai,

NesC simply compiles the code into C code. After you compile your 
application, you can have a look at it in the subdirectory 
build/<platform>/app.c (eg. build/telosb/app.c). Most likely it doesn't 
optimize anything. The actual optimization for the binary code would 
then be done by the platform's C compiler and thus would be platform 
dependent (you could probably even use different compilers for the same 
platform). You can probably find more about the optimizations in a GCC 
manual.

Cheers,
Urs


BAI LI wrote:
> Hi,
> 
> I am just wondering how NesC compiler optimizes the computation for a*a and
> a % n. Could you point out some references I can have a look at please?
> Thanks in advance.
> 
> Regards,
> Bai
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to