Re: simple assembler program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux