Compiling Applications

  • : Function ereg() is deprecated in /home/project-web/tinyos8051wg/htdocs/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/project-web/tinyos8051wg/htdocs/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/project-web/tinyos8051wg/htdocs/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/project-web/tinyos8051wg/htdocs/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/project-web/tinyos8051wg/htdocs/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/project-web/tinyos8051wg/htdocs/includes/file.inc on line 647.

4. Compiling applications

TinyOS users will find the environment familiar, the platform is programmed like any other TinyOS platform and compiled using the new platform names.

For example to compile an application


  make cc2430em

Or for Sensinode Nano


  make nano

4.1 Using Inline

The inline tool distributed along with this tool is documented in the README.inline file and here. The tool is executed as a pre compiler step between NescC and the 8051 compiler, to run it simple add the target inline to the commandline.


  make cc2430em inline

The inlining algorithm is tuned using a few command line arguments (run utah-inliner.pl and cilly.exe for full list). In particular the flag --auto honors the inline annotations from NescC while --smart uses a heuristics to decide when to inline. The arguments are passed to the inliner using the environment variable INLINE_FLAGS the default flags are as follows:

  export INLINE_FLAGS = --8051 --auto --clean --shorten

4.2 Extra targets

The 8051 platforms define a few additional targets in addition to inline that can be added tot he command line. For example to cleanup any additional files created by Keil run the "clean" extra target:


  make cc2430em clean

For further information run

  make cc2430em help