This is the mail archive of the
mailing list for the GCC project.
Re: [patch] ppc64 native target for gcc
- From: Mike Stump <mrs at apple dot com>
- To: Bradley Lucier <lucier at math dot purdue dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, Eric Christopher <echristo at apple dot com>
- Date: Fri, 10 Nov 2006 10:58:25 -0800
- Subject: Re: [patch] ppc64 native target for gcc
- References: <1BC200EE-1436-4E0A-A623-48FB659F7C4B@math.purdue.edu>
On Nov 10, 2006, at 6:04 AM, Bradley Lucier wrote:
This is very nice. How am I supposed to build it?
The standard answer is you build a cross compiler from 32 to 64
then you use that to build a native compiler:
CC=gcc from above configure --host=powerpc64-apple-darwin8.8.0 --
I think that's even about how Eric builds them. I think he used a
slightly modified build_gcc from our internal building method.
For the tools to use with the first, you need gcc, ar, ranlib, as,
ld, nm and so on with the cross style names. Internally we just
create shell scripts that invoke /usr/bin/as and so on. Be sure to
point the cross as /usr/include and /usr/lib for headers and libraries.
Another way, might be for Eric to upload an already built compiler,
so that you don't have to bootstrap one, then you just CC=that_gcc
and configure and build as normal.