welcome to www.hangar-eleven.de - your premier resource for console development





Development Env

Installing Cygwin
Installing MingW/MSys

Building PowerPC toolchain
Making Binutils
Making xGCC
Making Newlib
Making final GCC

Compiling libOGC

Testing LIB and compilers
Compiling/upping an example

Back to News

 

  Compiling the PowerPC cross-compiler
  Written: January 23rd, 2002 @ 18:09 GMT By: Thorsten Titze
 
 

After we successfully compiled the binutils for the PowerPC platform now we will compile the compiler needed for compiling the Newlib library. (we will compile the GCC a second time for the final C,C++ PowerPC target).

Note:
If you are using the MinGW environment and you haven't patched the GCC sources yet please refer to Building PowerPC toolchain on the left navigation on how to patch the sources !

Here is the step-by-step tutorials:

  • Set the needed environment variables in your shell with the following commands:
    (you should have already set them if you're going step-by-step through all the toolchain guides)

    target=powerpc-eabi-elf
    prefix=/usr/local/ngc/$target
    binaries=$prefix/bin
    PATH=$binaries:$PATH

  • Change to your BUILD-GCC directory

    cd /gcc/build-gcc

  • Configure your makefile so that it reflects your TARGET and DIRECTORIES

    ../gcc-3.3.2/configure --target=$target --prefix=$prefix --with-cpu=750 --with-gcc --with-gnu-as --with-gnu-ld --with-newlib --with-stabs --enable-languages=c,c++ --disable-nls --disable-threads --disable-shared --disable-softfloat --disable-multilib --disable-long-long

  • Start the make-procedure including install

    make all-gcc install-gcc

    (this again takes a bit longer than before)

Now you have our preliminary PowerPC-GCC Compiler sitting in /usr/local/ngc/powerpc-eabi-elf/bin.

NOTE:
The compiler binaries resulting from this step are only used for compilation of the Newlib !! The real GCC (with C++ support) will be compiled after newlib !



  Go to the homepage of the GCC Project

Back to GameCube Development Main


DISCLAIMERS:
Website Design © 2002 by Thorsten Titze / hangar-eleven.de
(the pictures used for the design were taken from a WindowsXP Skin and WindowsXP)
All brand names used on this site are registered trademarks of their respective owners
No copyright infringement is intended
Last updated @ 17-Jan-2004 10:04 PM Contact me via eMail