linux-mips
[Top] [All Lists]

Re: simple assembler program

To: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Subject: Re: simple assembler program
From: "Maciej W. Rozycki" <macro@linux-mips.org>
Date: Wed, 21 Jul 2004 15:44:03 +0200 (CEST)
Cc: linux-mips@linux-mips.org
In-reply-to: <20040721065644.GI4690@lug-owl.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <002701c46ee1$feeb7fc0$cc20bdd3@roman> <20040721065644.GI4690@lug-owl.de>
Sender: linux-mips-bounce@linux-mips.org
On Wed, 21 Jul 2004, Jan-Benedict Glaw wrote:

> > #sde-as test.S -o testtest.S: Assembler messages:
> > test.S:9: Error: absolute expression required `li'
> > test.S:10: Error: absolute expression required `li'
> > 
> > When I eliminate #define and use just 'li $3, 1' and so on - everything is
> > compiled correctly. Where is my problem?
> 
> Assembler sources aren't commonly fed through a preprocessor, so your
> assembler just ignores the comments (your defines) and uses "a" and "b"
> as-is.

 However, they would be, based on the file name suffix, which is .S for
assembly to be preprocessed or .s for one not to, if fed to the assembler
via the gcc driver.

  Maciej

<Prev in Thread] Current Thread [Next in Thread>