|
Each source program file must be compiled into an object file containing processor instructions. You can compile a source file with a command of the following form:
3L C source-file
The 3L C command invokes the Texas Instruments C compiler with certain required options. A source-file is the name of a C source file, and the filename extension .c must be given explicitly in the command. So, to compile the file hello.c, you would give the command:
» 3L C hello.c
If the source file contains no errors, an object file hello.obj is produced. If the compiler detects errors in the source program, it writes diagnostic messages to the screen. For a discussion of the format of these error messages and how to make use of them, please refer to the compiler's documentation.
The IDE compiles (and links) source files for you if you type Ctrl+B or select Project/Build All.
The IDE attempts to minimize the work needed by compiling only those files that appear to have been changed since they were last compiled. You may wish occasionally to force the IDE to rebuild certain components. You can do this by selecting Project/Clean and following the instructions there.
|