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 Binutils for PowerPC
  Written: January 1st, 2004 @ 18:31 GMT By: Thorsten Titze
 
 

We will start by making the binutils-package (this includes assembler, linkers and some additional tools) for the PowerPC-processor of the GameCube. Just follow this small step-by-step tutorial and everything should work out !

  • Set the needed environment variables in your shell with the following commands:

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

  • Change to your BUILD-BINUTILS directory

    cd /gcc/build-binutils

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

    ../binutils-2.14/configure --target=$target --prefix=$prefix --with-cpu=750

    (this step may take quite some time, so enjoy the nice printouts and take a cup of coffee....... or two...)

  • Start the make-procedure including install

    make all install

    (as with the step above this may take some time... even some more than configuring)

  • Also to be able to use the binutils and compilers we have to add the directory to our path in either .profile or .bashrc add the following line: (this line puts both the binutils and gcc into your path)

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

    NOTE: If you used an other path in prefix. Please add your own path to your .bashrc or .profile !

Now you have your PowerPC-BINUTILS sitting in /usr/local/ngc/powerpc-eabi-elf/bin (or any other path you defined in $prefix) . And are ready to comile the remaining parts of the toolchain.

 



 

Go to the Homepage of the Binutils 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:14 PM Contact me via eMail