SLAU132V October 2004 – February 2020
The tables in the .cinit section consist of variable-size initialization records. Each variable that must be autoinitialized has a record in the .cinit section. Figure 6-6 shows the format of the .cinit section and the initialization records.
The fields of an initialization record contain the following information:
Each variable that must be autoinitialized has an initialization record in the .cinit section.
Example 10 shows initialized global variables defined in C. Example 11 shows the corresponding initialization table. The section .cinit:c is a subsection in the .cinit section that contains all scalar data. The subsection is handled as one record during initialization, which minimizes the overall size of the .cinit section.