___boot()

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
629件の閲覧回数
Ardoster
Contributor III

Hi

I'm trying to understand better what's the startup sequence in MQX. Alll I know for now is that the final line in the file S19 says what's the entry point to the application. In my case, is the address 0x2CA3C:

S70500044A3C70

So, in the xMAP file, I find that this address corresponds to the function __boot() (2 underscores)

  00044A3C 00000060 .text   __boot    (bsp_gps61850sac.a boot_c.o   
)

So, the entry point of a MQX application should be __boot().

But in the Projects's Properties dialogue, in C/C++ Build > Settings > ColdFire Linker > Input, I can see the entry point is ___boot (3 underscores!).

What's happening? Where's the function ___boot()? Or ___boot() is the same function as __boot()??? Where is indicated the correspondency between ___boot and __boot()???

Any suggestion will be appreciated. Thanks you in advance.

Regards

タグ(2)
0 件の賞賛
返信
1 解決策
534件の閲覧回数
alexandrevincon
Contributor III

I don't know the specifities of your case, but the additional '_' is quite common. It is added by the compiler. The technique is known as "name decoration" (aka "name mangling"). This page on Wikipedia could shed some light on the subject : http://en.wikipedia.org/wiki/Name_mangling

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
535件の閲覧回数
alexandrevincon
Contributor III

I don't know the specifities of your case, but the additional '_' is quite common. It is added by the compiler. The technique is known as "name decoration" (aka "name mangling"). This page on Wikipedia could shed some light on the subject : http://en.wikipedia.org/wiki/Name_mangling

0 件の賞賛
返信
534件の閲覧回数
Ardoster
Contributor III

Yes, probably you're right.

Thanks for your help.

0 件の賞賛
返信