Making a DCDev Environment
If you are going to compile your sources so you can run them on your Dreamcast, you will need to have a working dcdev environment. First of all, lets get the SH4 and ARM compilers. You should use the following, as it is very organised, up-to-date, and it's worked perfectly (at least for me).
Blackaura's sh4_toolchain.rar
Blackaura's arm_toolchain.rar
Cygwin setup:
Download the Cygwin setup.exe.
Select a mirror and make sure you keep the same mirror when you resume so that your package directory is kept neat (setup.exe should have it highlighted). The latest default Cygwin installation should work just for compiling DC programs but if you want to use kos-svn or compile for Unix/Windows then please click the symbol between All and Default on the top. This will change everything to Install, insuring you have everything needed to run the kos-svn script or for compiling programs for other platforms than DC.
Install Cygwin and tools:
Now it is just a simple matter of installing cygwin, and installing the tools. Install cygwin in the folder C:\cygwin or D:\cygwin, it doesn't much matter as long as it is in a root folder.
Then extract that SH4/ARM-stuff you downloaded to C:\cygwin\usr\local\dc, so now you should have C:\cygwin\usr\local\dc\sh-elf and another folder beside that one called C:\cygwin\usr\local\dc\arm-elf .
If not, please put the directories where they should go.
KOS setup:
Get Blackaura's precompiled KOS-1.2.0.
Install the prebuilt KOS in like C:\cygwin\usr\local\dc\kos and put this file in the kos directory (delete the .txt extension).
Now it should be like C:\cygwin\usr\local\dc\kos\bin, NOT C:\cygwin\usr\local\dc\kos\kos-1.2.0\bin
Go to your C:\cygwin\etc\profile file. Add a last line like . /usr/local/dc/kos/environ-dc.sh and,remember, it's .<space>/
The last 3 lines should look like:
$ '
. /usr/local/dc/kos/environ-dc.sh
This will autoload your environ file whenever you start cygwin
Add a cd " /usr/local/dc/kos " after that, if you wish to start at kos's main dir
Then the last 4 lines should look like:
$ '
. /usr/local/dc/kos/environ-dc.sh
cd "/usr/local/dc/kos/ "
Please look at the KOS Subversion article to learn about getting the latest KOS version.