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 the first KallistiOS program
  Written: September 25th, 2001 @ 22:41 GMT By: Thorsten Titze
 
 

The compilation process is quite easy. Along with the sourcecode you should have also unpacked a Makefile.

This Makefile can be used for all simpler projects that do not use a RomDisk. You just have to change the following to lines to reflect your sourcecode name:

TARGET = firstexample.elf
OBJS = firstexample.o

As I said, this is only valid for extremely simple sources. So you should have at least a bit of knowledge on Makefiles to get a valid makefile for larger projects. You might also look at the more complex examples of KallistiOS.

If your environment is set correctly with dc_environ.sh you should be able to type

make

and the compilation process should begin and in the end you should have a firstexample.elf file sitting in your directory.

If you want to stripout all the debug informations from your binary (therefore making it smaller and the transfer to the Dreamcast faster) you might type up

make dist

This does nothing else than executing sh-elf-strip firstexample.elf which rids the binary from all the debug information.

This is now the ELF binary that is ready for sending to the Dreamcast.



  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