virtual table _eabi() initialization

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

virtual table _eabi() initialization

1,165 次查看
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

标记 (3)
0 项奖励
回复
1 回复

1,085 次查看
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 项奖励
回复