virtual table _eabi() initialization

cancel
Showing results for 
Search instead for 
Did you mean: 

virtual table _eabi() initialization

174 Views
kfirbs
Contributor III

Hi,

Debugging my code that contains classes with inheritance on MPC5748G, I saw that the startup code doesn't initialize the virtual of global classes, and this is only called in __eabi right before main.

Is that correct?

If so, How can I move the call to be part of my satartup code instead of being a prologue to main()?pastedImage_2.png

Tags (3)
0 Kudos
1 Reply

94 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

I received some information from compiler team:

You can rename main to something else e.g. main_user() and call __eabi() from whetever place you want

__eabi() generates automatically for main() only

Another way is to suppress original eabi function by custom one

Hope it helps a little bit.

Regards,

Martin

0 Kudos