Section information of ADS generated assembly file
Wed Jun 4 06:54:00 GMT 2003
It is nice to see other people are dealing with the same pb as I do ;P
Concerning your question, I would recommend converting (by hand or automatically) your
inline asm to GNU syntax instead of generating pure one with armcc and then adapting it.
Indeed, gcc/gas understands ARM opcodes; only the directives are different. IMHO, you'll
save more time trying to adapt a few directives in your original source than the whole
machine-generated asm stuff.
Hopes that helps,
> Hi all,
> I am not sure whether this is the right place to ask my query. [It is more
> related to ADS than to gcc GAS]
> I have an C code with inlined assembly, built for ADS[ARM Development
> Suit]. The inline assembly is not in gcc-syntax. I converted it to pure
> assembly file using the -S option of armcc compiler.
> Now I changed the directives of the file to suit the gcc assembler
> (gas). The assembled code has something like the following
> DCD ||.constdata$1||
> DCD ||.constdata$1|| + 4
> AREA ||.constdata||, DATA, READONLY, ALIGN=1
> DCW 0x0001,0x0003
> DCW 0x0000,0x0001
> DCW 0x0002,0x0004
> AREA |area_number.1|, DATA, READONLY, ALIGN=0
> EXPORTAS |area_number.1|, ||.constdata||
> My query is
> 1) What the ||.constdata$1|| stands for?? Is it a label or a subsection
> inside the .data area or is it a indication to the linker to attach a
> specific (load) address to this symbol??
> 2) Why EXPORTAS is used to export the section named |area_number.1| as
> 3) How can I map this to gcc GAS assembler directives??
> Thanks in advance
> "Destiny is not a matter of chance, it is a matter of choice; it is not a
> thing to be waited for, it is a thing to be achieved."
> Jennings Bryan
> Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to email@example.com
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to firstname.lastname@example.org
More information about the crossgcc