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





Development Env

Installing Cygwin

Building SH4 toolchain
Making Binutils
Making crossGCC
Making Newlib
Making final crossGCC

Building ARM toolchain
Making Binutils
Making crossGCC

Compiling KallistiOS

Testing KOS and the Compilers
Writing the first program
Compiling the first program
Uploading to the Dreamcast
DC-Tool
Serial Slave

Making a CD

Back to News

 

  Compiling final xGCC for SH4 Platform
  Written: February 1st, 2001 @ 20:55 GMT By: Thorsten Titze
 
 

Now that we used the preliminary GCC for compilation of newlib we can finally compile the complete GCC package (including GCC and G++). This compiler will then be used for the actual Dreamcast compilation.

  • 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 the SH4 toolchain guide)

    target=sh-elf
    prefix=/usr/local/dc/$target
    binaries=$prefix/bin
    PATH=$binaries:$PATH


  • Change to your BUILD-GCC directory

    cd /gcc/build-gcc

  • Clean the build directory

    make clean

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

    ../gcc-3.0.3/configure --target=$target --prefix=$prefix --without-headers --with-newlib --enable-languages=c,c++

  • Start the make-procedure including install

    make all install

    (this takes even longer than building the preliminary GCC compiler, be prepared to drink a tea or two !)

Now you have your final SH4-GCC Compilter sitting in /usr/local/dc/sh-elf/bin.

  Go to the sourceforge homepage of KallistiOS

Back to Dreamcast 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 @ 22-Feb-2002 2:19 PM Contact me via eMail