This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: arm assembly syntax incompatible
- To: "Alu Minium" <tjf2 at prontomail dot com>
- Subject: Re: arm assembly syntax incompatible
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Thu, 19 Jul 2001 09:41:39 +0100
- cc: binutils at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Organization: ARM Ltd.
- Reply-To: Richard dot Earnshaw at arm dot com
> 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.