Keil™, An ARM® Company

RTX166 Tiny User's Guide

Command-Line Tools

RTX166 Tiny is fully integrated into the C166 programming language. This makes generating RTX166 Tiny applications very easy to master. To create an RTX166 Tiny program, you need only write C functions. No assembly programming is required.

To compile your RTX166 Tiny programs from the command line...

Invoke the compiler as normal. No special directives are required. For example:

C166 RTXPROG.C DEBUG

The resulting RTXPROG.OBJ file contains the C code and RTX166 Tiny tasks you defined.

To link your RTX166 Tiny programs from the command line...

  • Specify the RTX166TINY directive on the linker command line.
  • Include the RTX_CONF.OBJ file in the list of object files (if you made configuration changes).

For example:

L166 RTXPROG.OBJ, RTX_CONF.OBJ RTX166TINY

The RTX166TINY directive instructs the linker to link RTXPROG.OBJ with RTX_CONF.OBJ and to include the RTX166 Tiny library. An RTX166 Tiny program using the tasks created in your C files is created.

Note

  • Do not create a main C function for your RTX166 Tiny programs. Create only task functions. The main C function is included in the RTX166 Tiny Library to start the operating system and task 0. If you include a main function in your application, you will receive a linker error indicating there are multiple public definitions of main.
  • You must create at least one task function in your program.
  • Your application must call at least one RTX166 Tiny function (like os_wait) for the linker to include the RTX166 Tiny Library.