___boot()

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

___boot()

跳至解决方案
647 次查看
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 解答
552 次查看
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 回复数
553 次查看
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 项奖励
回复
552 次查看
Ardoster
Contributor III

Yes, probably you're right.

Thanks for your help.

0 项奖励
回复