DJGPP Port of GCC-4.2.1
1. Linux to DJGPP cross-compiler
Linux to DJGPP cross-compiler SRPM is available:
- djcross-gcc-4.2.1-9.src.rpm -
source
RPM for building GCC-4.2.1 as Linux hosted cross-compiler for target i586-pc-msdos-djgpp.
One needs to install also djcrx
and
djcross-binutils RPM packages before building cross-compiler. It is tested
for Fedora 7 Linux distribution. 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
cross-compiler with
gcc-4.0.2 failed for me, so I added this step). The following
additional packages are necessary for building cross-compiler from
sources:
- 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
/usr/i586-pc-msdosdjgpp/lib.
- native GCC for Linux. C and Ada support required.
This list is however not
complete
I built also binary
RPM for Fedora Core 7.
Additionally ZIP archive
contains RPM specs file together with scripts and patches for original
FSF sources of GCC-4.2.1. So downloading this file together with gcc-4.2.1.tar.bz2
is also enough for building GCC-4.2.1 as Linux to DJGPP
cross-compiler.
2. Source archives for DJGPP
There are GCC-4.2.1 2 source archives for DJGPP.
- gcc421s.zip :
entire
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.1.
- gcc421s2.zip
: scripts and
patches for generating gcc421s.zip frpm original FSF sources. I
generated gcc421s.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
(2.03r2):
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
(2.04pre):
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
GCC-4.2.1:
- gcc421d.zip
: Documentation for GNU C compiler (DVI, PS, PDF, HTML)
- gfor421d.zip
: Documentation for GNU Fortran compiler ((DVI, PS, PDF, HTML)
- ada421d.zip
: Documentation for GNU Ada compiler ((DVI, PS, PDF, HTML)
I built documentation archives under Linux and used
script mkdoc.pl (in directory gnu/install.gcc in
source package gcc421s.zip).
Last updated: 11
June 2007