SPRUIG8J January 2018 – March 2024
If you are developing your project outside of an IDE such as Code Composer Studio, you will need to use the command-line interface to the compiler and linker.
The compiler and linker are run using the same executable. This executable is the cl7x.exe file, which is located in the bin subdirectory of your TI Code Generation Tools installation.
You can use a single command line to both compile your code to create object files and link the object files to create an executable. All the command-line options that occur before the --run_linker (or -z for short) option apply to the compiler. All the command-line options that occur after the --run_linker (-z) option apply to the linker. In the following command-line, the -mv7100, --c99, --opt_level, --define, and --include_path options are compiler options. The --library, --heap_size, and --output_file options are linker options.
cl7x -mv7100 --c99 --opt_level=1 --define=c7000 --include_path="C:/ti/ti-cgt-c7000/include"
hello.c objects.cpp
--run_linker --library=lnk.cmd --heap_size=0x800 --output_file=myprogram.out