Hi,Guys.I am pretty new to Erika OS. Lately, I'm reading source code of ee_boot.s, I notice there are some lines like "blt 1b" and "beq 2f". What are "1b" and "2f"? are those lable? or relative address offset? I search ee_boot.s over and over again and don't see any lable as "1b" or "2f".
My second question is also in this file "ee_boot.s", there are multiple instances of lable "1" , "2". Is this a special usage ? i read PowerPC assembly manual and find no similar usage.
Anyone can help me answer those questions?
Thanks a lot for your help!
ee_boot.s questions for MPC5644a
Moderator: paolo.gai
ee_boot.s questions for MPC5644a
- Attachments
-
- ee_boot.s
- 2016-10-02 21_52_54-C__RT_Druid_plugins_com.eu.evidence.ee_2.7.0.20160615_1643_ee_files_pkg_mcu_free.png (23.58 KiB) Viewed 3847 times
Re: ee_boot.s questions for MPC5644a
Hi,
these are called numeric local labels, it's a GCC asm (gas) feature introduced in a bunch of other compilers (indeed those files are compiled with WindRiver DIAB verbatim and by NXP/Freescale METROWERKS[Codewarrior], after a code to code automatic translation procedure).
Basically the branches you pointed jump forward (f) or backwards (b), to the nearest numeric label of the same value.
Here a deeper explanation found in an ARM page (because ARM has the best documentation for embedded, period).
Chapter 4 Migrating ARM syntax assembly code to GNU syntax - 4.4 4.4 Numeric local labels
Errico
these are called numeric local labels, it's a GCC asm (gas) feature introduced in a bunch of other compilers (indeed those files are compiled with WindRiver DIAB verbatim and by NXP/Freescale METROWERKS[Codewarrior], after a code to code automatic translation procedure).
Basically the branches you pointed jump forward (f) or backwards (b), to the nearest numeric label of the same value.
Here a deeper explanation found in an ARM page (because ARM has the best documentation for embedded, period).
Chapter 4 Migrating ARM syntax assembly code to GNU syntax - 4.4 4.4 Numeric local labels
Errico