SPNU151V January 1998 – 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 0x8000 bytes |
--heap_size | Tells the linker to set the heap size to 0x2000 bytes |
To link the program, use the following syntax:
armcl --run_linker object_file(s) --output_file outfile --map_file mapfile lnk32.cmd |