-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.txt
37 lines (28 loc) · 906 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
mdcc - Mega Drive C Compiler Toolchain
======================================
Building
--------
To build the toolchain, just change into the root of the extracted
project and execute:
$ sh build.sh
By the end of this process, you should have a new directory called
"out". This provides the entire toolchain and can be copied and
run from any location. This is what should be packaged.
Using
-----
You can now compile a sample project via:
$ out/bin/mdcc out/src/hello/main.c
This will prodice a final rom file called "rom.bin" in the current
working directory. This can be run in the emulator, i.e:
$ dgen rom.bin
Requires
--------
texinfo - to compile gcc
perl - to compile gcc
gmake - to compile gcc
xz - to extract gcc
clang - system compiler
Thanks
------
Much of this project is based on the SGDK and gendev projects. They
were a great source of tools, scripts and underlying documentation.