pragma noinduction broke memcpy on mcs51 large model. Moved it into z80 code.
[fw/sdcc] / doc / readme.dj
1 This file is for djgpp users that want to compile sdcc with djgpp under DOS.
2
3 Requirements:
4
5 * For the current release you'll need a system that supports long file names
6 (Win 95 or Win 98). That's because a lot of names aren't 8+3 clean and the
7 compile process will fail.
8 * You'll need fileutils (rm, ls, etc.) and maybe textutils too.
9 * bash is also needed to run the sdccbuild.sh script.
10 ATTENTION! use bash 2.03 or newer, *don't* use the old bash found in
11 simtelnet (bsh1147b.zip) it could crash. In my case generated a GPF in the
12 W95 kernel so I don't recommend using it.
13 * bison and flex are needed because the parser is done using bison.
14 * DJGPP v2.02 or newer, it won't work with 2.01.
15 * The usual djgpp stuff is of course needed (make, gcc, etc).
16 * Autoconf and automake are needed for 2.1.8 and newer SDCC versions.
17 * A lot of free memory, the parser generated by bison is over 700Kb so you
18 won't compile it with only 10Mb of free memory.
19
20 How to compile:
21
22 * Delete configure file and run "make configure".
23 * run it:
24
25 bash sdccbuild.sh
26
27 And follow the instructions. Ignore the warnings.
28 If all works ok you'll get sdcc in the bin directory and all the libc support
29 compiled in sdcc51lib.
30
31 I think that's all.
32
33 Notes:
34 * I patched gc 4.13pl3 (gc directory) to support djgpp v2.x, Hans told me the
35 patch will be part of 4.14.
36 * I patched the sources to avoid using fork/exec/wait and just use system.
37 * Also patched the sdccbuild.sh to detect MS-DOS and then use ; as the
38 PATH_SEPARATOR, if it fails in your system edit the file to make:
39 PATH_SEPARATOR=";"
40
41 Salvador Eduardo Tropea (SET), salvador@inti.gov.ar or set@computer.org