Hi,
Where in the code Global C++ objects initialization occurs ? (Which file ?)
Thanks,
Eli
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,
Where in the code Global C++ objects initialization occurs ? (Which file ?)
Thanks,
Eli
Hi,
Maybe I should provide the contents of __TI_auto_init() ?
Where can I find such a code ?
Thanks,
Eli
I've noticed that inside boot_armv7r.c
I don't recognize that file name. It is not part of the startup code that is in the RTS library supplied with the compiler. Perhaps you have replaced that startup code with some other implementation. That's okay. But please understand the description I give next does not apply to a custom implementation. It is probably correct in many ways, but not every detail.
Which file is used when the code has C++ global objects constructors ?
For a general overview of what happens, please read this forum post. But with one difference: replace the section name .pinit with .init_array. The function in the startup code that comes with the compiler which performs this task is named run_pinit. The implementation is in the source file autoinit.h.
Thanks and regards,
-George