SLAU132Y September 2004 – June 2021
You can use options to change how the compiler interprets your filenames. If the extensions that you use are different from those recognized by the compiler, you can use the filename options to specify the type of file. You can insert an optional space between the option and the filename. Select the appropriate option for the type of file you want to specify:
--asm_file=filename | for an assembly language source file |
--c_file=filename | for a C source file |
--cpp_file=filename | for a C++ source file |
--obj_file=filename | for an object file |
For example, if you have a C source file called file.s and an assembly language source file called assy, use the --asm_file and --c_file options to force the correct interpretation:
cl430 --c_file=file.s --asm_file=assy
You cannot use the filename options with wildcard specifications.
The default file extensions for object files created by the compiler have been changed in order to prevent conflicts when C and C++ files have the same names. Object files generated from C source files have the .c.obj extension. Object files generated from C++ source files have the .cpp.obj extension.