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 preliminary xGCC for SH4 Platform
  Written: February 1st, 2001 @ 19:55 GMT By: Thorsten Titze
 
 

After we successfully compiled the binutils for the SH4 now comes the compiler we need for compiling the Newlib library for the SH4 target. (we will compile the GCC a second time for the final Dreamcast target).

  • 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

  • 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

    (As withbuilding the binutils this takes some time.. one difference... it takes longer ;)

  • Start the make-procedure including install

    make all install

    (this again takes a bit longer than before)

Now you have our preliminary SH4-GCC Compiler sitting in /usr/local/dc/sh-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 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