SLAU132V October 2004 – February 2020
You can use options to change how the compiler program interprets filename extensions and names the extensions of the files that it creates. The filename extension options must precede the filenames they apply to on the command line. You can use wildcard specifications with these options. An extension can be up to nine characters in length. Select the appropriate option for the type of extension you want to specify:
--asm_extension=new extension | for an assembly language file |
--c_extension=new extension | for a C source file |
--cpp_extension=new extension | for a C++ source file |
--listing_extension=new extension | sets default extension for listing files |
--obj_extension=new extension | for an object file |
The following example assembles the file fit.rrr and creates an object file named fit.o:
cl430 --asm_extension=.rrr --obj_extension=.o fit.rrr
The period (.) in the extension is optional. You can also write the example above as:
cl430 --asm_extension=rrr --obj_extension=o fit.rrr