Hi,
I am building a C++ code in CCS to run on A53. I am using GCC compiler. fundamental global variables like int do get intialized to the required value but global struct/class constructors are not being called.
How to solve the problem?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am building a C++ code in CCS to run on A53. I am using GCC compiler. fundamental global variables like int do get intialized to the required value but global struct/class constructors are not being called.
How to solve the problem?
Abhimanyu,
We don't currently have examples and support for C++ bare metal on the A53 cores in the Sitara family. The bare metal C++ examples are limited to what is in https://software-dl.ti.com/mcu-plus-sdk/esd/AM64X/latest/exports/docs/api_guide_am64x/EXAMPLES_HELLO_WORLD_CPP.html . For A53 the constructor initialization (.init_array initialization specifically) is what does not work with the current SDK. We are looking into having a C++ A53 example included in the SDK, but we don't have a committed timeline. In the meanwhile you will have to find a way to have .init_array initialized if you want to pursue this without SDK example. See also https://gcc.gnu.org/onlinedocs/gccint/Initialization.html for something that might be useful.
Pekka