DJGPP Port of GCC-4.2.2
1. Linux to DJGPP cross-compiler
Linux to DJGPP cross-compiler SRPM is available:
- djcross-gcc-4.2.2-12ap.src.rpm -
RPM for building GCC-4.2.2 as Linux hosted cross-compiler for target i586-pc-msdos-djgpp.
One needs to install also djcrx
djcross-binutils RPM packages before building cross-compiler. tested
for Fedora Core 6 Linux distribution only. At first native
compiler for Linux (C and Ada compilers only) is built
and installed into a temporary directory ensure that cross-compiler is
built with exactly the same GCC version (sometimes earlier building
gcc-4.0.2 failed for me, so I added this step). The following
additional packages are necessary for building cross-compiler from
- installed Linux to DJGPP cross-binutils
- DJGPP C library
headers and static libraries
- DJGPP port of GMP (no ready RPM package, take header
files and static libraries from gmp412b.zip and
put them into directories /usr/i586-pc-msdosdjgpp/include and
- native GCC for Linux. C and Ada support required.
This list is however not
I built also binary
RPM for Fedora 7 (x86_64 - 64 bit version).
Additionally ZIP archive
contains RPM specs file together with scripts and patches for original
FSF sources of GCC-4.2.2. So downloading this file together with gcc-4.2.2.tar.bz2
is also enough for building GCC-4.2.2 as Linux to DJGPP
2. Source archives for DJGPP
There are GCC-4.2.2 2 source archives for DJGPP.
- gcc422s.zip :
source archive for DJGPP. Sources are not pre-configured. One needs to
replace DJGPP stubify.exe with modified version to increase size of
stack. The default 512KB is not enough for building GCC-4.2.2.
: scripts and
patches for generating gcc422s.zip frpm original FSF sources. I
generated gcc422s.zip under Linux when building Linbux-to-DJGPP
cross-compiler. It is expected to work also with DJGPP tools, but I
have not tested that for rather long time.
3. Binary archives for DJGPP v2.03r2
There are following binary archives for current stable DJGPP release
It is not recommended to use these binary packages with development
version of DJGPP
4. Binary archives for DJGPP development version (2.04pre)
There are following binary archives for DJGPP development (CVS) version
It is not recommended to use these binary packages with stable release
version (2.03r2) of DJGPP.
5: Documentation archives for DJGPP
There are following documentation packages available for DJGPP port of
I built documentation archives under Linux and used
script mkdoc.pl (in directory gnu/install.gcc in
source package gcc422s.zip).
: Documentation for GNU C compiler (DVI, PS, PDF, HTML)
: Documentation for GNU Fortran compiler ((DVI, PS, PDF, HTML)
: Documentation for GNU Ada compiler ((DVI, PS, PDF, HTML)
A screenshot of building DJGPP port of GCC-4.2.2.
Last updated: 11