This is a work in progress, and is not yet complete. For instance, I still haven't quite set up for dev-c++ as an IDE for DC, so you will have to wait for that, but this will hopefully get the compiler working.
Step 1: Download Dev-C++
Step 2: Download MSYS
Step 3: Extract the Dev-C++ archive, and install it.
Step 4: Install MSYS.
Step 5: When MSYS asks you if you want to do the post-install say 'y' (without quotes)
Step 6: When it asks you if you have MinGW installed say 'y'
Step 7: Put in the directory where you installed dev-c++ (i.e. C:/dev-c++)(make sure you use / instead of \)
Step 8: Download GCC 3.0.4 to wherever you installed MSYS
Step 9: Download Binutils-2.11.2 to wherever you installed MSYS
Step 10: Download Newlib-1.10.0to wherever you installed MSYS
Step 11: Start MSYS, then type in 'cd /' (without quotes) Step 12: Un-pack each of these archives (i.e. tar -xzvf gcc-3.0.4.tar.gz && tar -xzvf binutils-2.11.2.tar.gz && tar -xzvf newlib-1.10.0.tar.gz) (in MSYS)
Step 13: Run the following commands:
mkdir build-sh-gcc
mkdir build-sh-binutils
mkdir build-sh-newlib
mkdir build-arm-gcc
mkdir build-arm-binutils

Step 14: Run these commands to begin to set up binutils:
cd build-sh-binutils
../binutils-2.11.2/configure --prefix=/cross/dc/sh-elf --target=sh-elf
make all install
export PATH=/cross/dc/sh-elf:$PATH
cd ..

Step 15: Run these commands to set up GCC:
cd build-sh-gcc ../gcc-3.0.4/configure --prefix=/cross/dc/sh-elf --target=sh-elf --enable-languages=c cp gcc/makefile /tmp/makefile sed -e 's/STMP_FIXINC = stmp-fixinc/STMP_FIXINC =/g' /tmp/makefile > /tmp/makefile2 sed -e 's/USE_COLLECT2 = collect2$(exeext)/USE_COLLECT2 =/g' /tmp/makefile2 > /tmp/makefile3 mv /tmp/makefile3 gcc/makefile rm /tmp/makefile* /tmp/makefile make all install
cd ..

Step 16: Run these commands to set up Newlib:
cd build-sh-newlib ../newlib-1.10.0/configure --prefix=/cross/dc/sh-elf --target=sh-elf
make all install
cd ..

Note: this will only set up C support for the DC, if you want C++ support, then do step 18
Step 17: Run these commands to set up the arm stuff:
cd build-arm-binutils ../binutils-2.11.2/configure --prefix=/cross/dc/arm-elf --target=arm-elf make all install cd .. export PATH=/cross/dc/arm-elf:$PATH cd build-arm-gcc ../gcc-3.0.4/configure --prefix=/cross/dc/arm-elf --target=arm-elf --enable-languages=c cp gcc/makefile /tmp/makefile sed -e 's/STMP_FIXINC = stmp-fixinc/STMP_FIXINC =/g' /tmp/makefile > /tmp/makefile2 sed -e 's/USE_COLLECT2 = collect2$(exeext)/USE_COLLECT2 =/g' /tmp/makefile2 > /tmp/makefile3 mv /tmp/makefile3 gcc/makefile rm /tmp/makefil* make all install cd ..
Step 18(OPTIONAL): Run these commands if you absolutely need C++ support in KOS:
cd build-sh-gcc make distclean ../gcc-3.0.4/configure --prefix=/cross/dc/sh-elf --target=sh-elf --enable-languages=c, c++ cp gcc/makefile /tmp/makefile sed -e 's/STMP_FIXINC = stmp-fixinc/STMP_FIXINC =/g' /tmp/makefile > /tmp/makefile2 sed -e 's/USE_COLLECT2 = collect2$(exeext)/USE_COLLECT2 =/g' /tmp/makefile2 > /tmp/makefile3 mv /tmp/makefile3 gcc/makefile rm /tmp/makefil* make all install cd ..
NOTE: THIS MAY NOT WORK AT ALL, IT WORKS ON SOME SYSTEMS, BUT NOT ON OTHERS ONLY USE IF YOU ARE DESPIRATE TO HAVE C++ SUPPORT
Step 19: Get KOS
Now for this step, you can either get the CVS version using the commands that you find on the sourceforge site for KOS, or the latest release. If you are getting the Release version unzip it too
Step 20: Download genromfs binary to where you put KOS sources in the utils/genromfs directory.
Step 21: Edit the kos/utils/makefile and remove all things that say genromfs
Step 22: Unzip the genromfs-bin.tar.bz2 file
Step 23: Edit the kos/examples/conio/makefile and remove adventure from it
Step 24: Set up the environ-dc.sh file using /cross/dc/sh-elf for the KOS_CC_BASE and /cross/dc/arm-elf for DC_ARM7BASE and wherever you put kos for KOS base. Save this in the directory where KOS is as environ-dc.sh.
Step 25: Input this command to MSYS (in the kos base dir): ". ./environ-dc.sh"
Step 26: Run make in the KOS base directory. With any luck, after a few minutes KOS should be ready to go.