[Top] [All Lists]

Re: simple assembler program

To: Jan-Benedict Glaw <>
Subject: Re: simple assembler program
From: "Maciej W. Rozycki" <>
Date: Wed, 21 Jul 2004 15:44:03 +0200 (CEST)
In-reply-to: <>
Original-recipient: rfc822;
References: <002701c46ee1$feeb7fc0$cc20bdd3@roman> <>
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.


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