This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ARM syntax in gcc?


Sometime ago, Nick Clifton said:

> Hi Neelakanth,
> 
> : Does anyone know how to get ARM syntax and semantics recognized in
> : gcc? I couldnt find a flag in the manual.
> 
> Your message is not very clear as to what you are looking for.


I am sorry, I should have been more clear. Does gcc provide flags to
force source file to follow the guidelines in the The Annotated C++
Reference Manual ??

thanks,
-neelakanth

> 
> If you mean 'can GCC generate code for the ARM ?' then the answer is
> "yes".  Just configure a toolchain with --target=arm-elf or
> --target=arm-coff and then build.  There are instructions on how to do 
> this on the GCC web site:
> 
>      http://gcc.gnu.org/
> 
> If you mean 'does GCC support the syntax used by ARM's compiler in
> their SDK for command line switches, pragmas, etc ?' then the answer
> is "no".   GCC has its own command line syntax.  If you read the GCC
> manual you should be able to work out how to translate ARM's command
> line switches into their GCC equivalents (where they exist).
> 
> If you mean 'does GCC support the syntax used for ARM assembly
> instructions ?' then the answer is "yes".  GAS (when built for the
> ARM) will correctly assemble any ARM assembly instructions.  Note
> however, that the command line issue is still present.  GAS takes a
> different set of command line switches compared to ARM's own
> assembler.
> 
> 
> Cheers
> 	Nick

-neelakanth
(neelakanth @ gnu.org)
_____________________
http://www.gnu.org

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]