SLAU132Y September 2004 – June 2021
The C/C++ compiler produces data tables for initializing global variables. Section 7.10.3.4 discusses the format of these initialization tables. The initialization tables are used in one of the following ways:
If you use the linker command line without compiling any C/C++ files, you must use either the --rom_model or --ram_model option. These options tell the linker two things. First, they indicate that the linker should follow C/C++ conventions, using the definition of main() to link in the c_int00 boot routines. Second, they tell the linker whether to select initialization at run time or load time. If your command line fails to include one of these options when it is required, you will see "warning: no suitable entry-point found; setting to 0".
If you use a single command line to both compile and link, the --rom_model option is the default. If used, the --rom_model or --ram_model option must follow the --run_linker option (see Section 5.2).
For details on linking conventions for EABI with --rom_model and --ram_model, see Section 7.10.3.3 and Section 7.10.3.5, respectively.
Boot Loader
A loader is not included as part of the C/C++ compiler tools. See the "Program Loading and Running" chapter of the MSP430 Assembly Language Tools User's Guide for more about boot loading.