SLAU132V October 2004 – February 2020
Example 2 shows a typical linker command file that links a 32-bit C program. The command file in this example is named lnk32.cmd and lists several link options:
−−rom_model | Tells the linker to use autoinitialization at run time |
--stack_size | Tells the linker to set the C stack size at 0x140 bytes |
--heap_size | Tells the linker to set the heap size to 0x120 bytes |
--library | Tells the linker to use an archive library file, rts430.lib |
To link the program, enter:
cl430 --run_linkerobject_file(s)--output_file=file--map_file=file lnk.cmd