Mail Archives: djgpp/1994/03/02/08:36:06
>>>>> "Kraig" == Kraig Hanson <hansonk%cwis.unomaha.edu> writes:
Kraig> I've been playing around trying to figure out how to cross
Kraig> compile to DJGPP. (NYU has an Ada front end they
Kraig> distribute Sun binaries for.) The info I read seems to say
Kraig> that you have to configure the compiler on the host with
Kraig> the proper -target, but there is no defined target for PCs
Kraig> not running UNIX. Am I on the right track at all? How
Kraig> *did* DJ do the port???
I built my cross compiler (with help from net) by doing :
1) read INSTALL in gcc
2) build binutils , gas using the right target
--target=i386-ibm-go32 --host=hp9k700 --with-minimal-bfd=yes
3) put the binaries in the right place (see 1)
4) Ftp djgpp's include files and libs (from version 1.10 a.out style)
and put them in the right place (see 1)
4) build gcc with
--target=i386-ibm-go32 --host=hp9k700 --with-gnu-ld --with-gnu-as
Here I needed help. configure file needs to be changed as :
~/gcc-2.5.8>diff configure configure.org
538,543d537
< i[34]86-ibm-go32) # Intel 80386's running GO32/djgpp
< cpu_type=i386
< xm_file=i386/xm-dos.h
< xmake_file=i386/x-sysv3
< tm_file=i386/go32.h
< ;;
This will create a gcc that will create an a.out file which can be
ftp'ed to a PC and run with go32. However only a.out style seems to be
working as binutils and gas are not aware of dj's switch to coff.
Hope this helps
Osman
- Raw text -