This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: arm assembly syntax incompatible


> I am trying to cross-assemble (host=solaris,
> target=arm-elf) some assembly lang files which
> came from ARM.  When I do, I get lots of errors. 
> arm-elf-as does not like the syntax of the
> files.  For example the file contains ";" as a
> comment marker, but arm-elf-as attempts to
> process the line as an instruction.  The file has
> "include" statements that look like this:
> 
>     INCLUDE arm.equ
> 
> arm-elf-as says "INCLUDE" is a "bad instruction".
> 
> Since the files came from ARM they must (?) be
> using ARM-native syntax.  
> 
> What's up?  How do I get the GNU assembler to
> correctly read this syntax?

You can't -- you will have to translate it by hand.  GAS uses a 
'traditional UNIX' syntax.  Though I say it myself, for historical reasons 
the ARM assembler uses a very strange and non-standard syntax.

I don't ever expect the two to be compatible.

Richard.


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