[gccsdk] correct syntax for as

Peter Naulls peter at chocky.org
Tue Jan 8 12:23:12 PST 2008

Tony van der Hoff wrote:
> Hi,
> I'm trying to do a bit of assembly under RISC OS using GCC, using the
> current version from http://www.riscos.info/index.php/GCC_for_RISC_OS.
> My makefile contains the following rule: 
> .s.o:	;$(AS) -o $@ $<
> which resolves to 
> as -o riscosa.o riscosa.s
> File 'as' not found
> Now, 'as' sits in some obscure subdirecory under !gcc/bin, with no obvious
> path to it, so how is it expected to find it?
> Am I supposed to override the default $(AS) with something else?
> I'm sure it's documented somewhere, but I can't find it.

Perhaps you can tell us what GCC version you're using, but 'as' isn't
really meant be called directly under RISC OS, as calling 'gcc' does
the job just as well (or better in some cases).

The issue here is a missing default in make.  AS=gcc should work in the 
top of the Makefile as work around.

More information about the gcc mailing list