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
解決済! 解決策の投稿を見る。
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
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
Yes, probably you're right.
Thanks for your help.