___boot()

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

___boot()

Jump to solution
456 Views
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

Tags (2)
0 Kudos
1 Solution
361 Views
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

View solution in original post

0 Kudos
2 Replies
362 Views
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 Kudos
361 Views
Ardoster
Contributor III

Yes, probably you're right.

Thanks for your help.

0 Kudos