gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

ASM > Differences between ARM syntax and GNU syntax

#77217 - pognibene - Wed Mar 29, 2006 1:41 pm

Hi all,

I'm want to port existing ARM code, written for
the ARM SDK, to gas/gnu syntax.

I have many PROC ... ENDP used in the
code to define entry/exit points for the functions.
Do you know how to translate this to gnu syntax
when using ARM mode?

(I assume this must translate in some stack frame
manipulation, but can't find anywhere the sequence
of instructions).

Thank's for your help,

pogn

#77230 - poslundc - Wed Mar 29, 2006 6:03 pm

It's my understanding that the PROC/ENDP combo are used for generating debugging/profiling information only, and for error-checking by the assembler.

In that regard, they are not strictly necessary (or even adviseable) for assembly programming, and if you use them then everything between the pairing ought to conform to the hefty ARM intra-procedure call standard.

It's GAS equivalents are .func and .endfunc I believe.

Dan.

#77249 - Miked0801 - Wed Mar 29, 2006 7:33 pm

You could always look at the output to see what those directives are doing.