SPRU514Z July 2001 – October 2023 SM320F28335-EP
This section applies to applications that use the COFF ABI only.
All global C++ variables that have constructors must have their constructor called before main(). The compiler builds a table in a section called .pinit of global constructor addresses that must be called, in order, before main(). The linker combines the .pinit section form each input file to form a single table in the .pinit section. The boot routine uses this table to execute the constructors.