[gccsdk] correct syntax for as

Tony van der Hoff tony at vanderhoff.org
Tue Jan 8 13:22:09 PST 2008

On 8 Jan at 20:23 Peter Naulls <peter at chocky.org> wrote in message
<4783DBB0.8040203 at chocky.org>

> 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.
Sorry about posting from an obfuscated address, and thanks for your reply. 

> 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).
GCC 3.4.2 release 3.

> The issue here is a missing default in make.  AS=gcc should work in the
> top of the Makefile as work around.
Yes,  that works, thanks

Tony van der Hoff        | mailto:tony at vanderhoff.org
Buckinghamshire, England 

More information about the gcc mailing list