virtual table _eabi() initialization

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

virtual table _eabi() initialization

1,167件の閲覧回数
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,087件の閲覧回数
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 件の賞賛
返信