The following list outlines what happens when you invoke the linker with the --ram_model or --rom_model option.
- The symbol _c_int00 is defined as the program entry point. The _c_int00 symbol is the start of the C boot routine in boot.c.obj. Referencing _c_int00 ensures that boot.c.obj is automatically linked in from the appropriate run-time-support library.
- When you use the ROM model to autoinitialize at run time (--rom_model option):
- The linker defines a special symbol called __TI_CINIT_Base that points to the beginning of the initialization tables in memory. When the program begins running, the C boot routine copies data from the tables (pointed to by .cinit) into the run-time location of the variables.
- When you use the RAM model to initialize at load time (--ram_model option):
- The linker sets __TI_CINIT_Base equal to __TI_CINIT_Limit to indicate there are no .cinit records.