linux-mips
[Top] [All Lists]

Re: cross development tools

To: Kristof Vanbecelaere <kristof.vanbecelaere@sonycom.com>
Subject: Re: cross development tools
From: Jim Paris <jim@jtan.com>
Date: Tue, 30 Oct 2001 10:57:14 -0500
Cc: linux-mips@oss.sgi.com
In-reply-to: <20011030151936.B1603@Chickadee>; from kristof.vanbecelaere@sonycom.com on Tue, Oct 30, 2001 at 03:19:37PM +0100
References: <20011030151936.B1603@Chickadee>
Reply-to: jim@jtan.com
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
> A while ago H.J. Lu adviced to use -march/-mtune instead of -mcpu
> options. But I wonder which front-end you need to use? It looks like
> gcc-3.0.2 lists the option as a target-specific one but does not
> accept it when you pass it.

I use gcc-3.0.2, which as you say does not support -march, but I found
that with the latest binutils + the new -march/-mipsN patch at
http://sources.redhat.com/ml/binutils/2001-10/msg00526.html
a GCCFLAGS of

     -mips2 -wa,-m4100,--trap

does a good job of letting the compiler generate mips2 while still
letting me use 4100-specific instructions in inline assembly (for
example).

> Also, I notice the compiler in H.J.'s port is something like
> gcc-2.96.something. Assuming this is also the version of the
> cross-compiler, how come I don't see this release on the official gcc
> web page? How do his tools relate to the gcc releases?

I think the general background is something like this:
- GCC released gcc-2.95, so their CVS incremented to 2.96
- RedHat distributed the CVS version of GCC, and called it gcc-2.96
- GCC incremented their CVS version again to 2.97 to attempt to 
  clear up the confusion
- RedHat's version maybe incremented to 2.97 at some point?

RedHat always throws on a ton of patches on top of released stuff,
and H.J. added lots more MIPS-related patches, so his port is basically
a CVS snapshot + tons of general and MIPS-specific patches.

I once went through the trouble of extracting the RPM and building
a .tar.gz that included all of the patches, but it didn't seem to
behave any differently from my point of view than gcc-3.0.2, so I'm
using that instead.  I can send you this .tar.gz if you'd like.

-jim

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