There is no direct way to compile a single .nc file to .c file. However, you can work this around by looking at the "app.c" file in "build/".
Note that app.c is the complete mote application in .c format. That means, if in any part of your .nc code the IPDispatchP.nc is included, it will be compiled in c and show up in the app.c file. So, what you need to do is to open the "app.c" in build/ and find any lines or code blocks contain "IPDispatchP". You can see all variable and function declarations, everything is in C style. If you save all those lines in a different file, you will get the C code for IPDispatchP.nc. On Mon, Jul 27, 2015 at 3:59 AM, Yan Song <[email protected]> wrote: > Hello everyone: > I still can't find a way to get the source code in .c. Sorry to ask > this question again. > The source code which I mean is not the one in apps/.../build/ , it's the > code in tos/.../ > > for example: tinyos-main-master\tos\lib\net\blip\IPDispatchP.nc > how can I get the c code which is linked with IPDispatchP.nc? > > Best regards! > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
