1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/devel/crossgo32/files
Steve Price e71900fd0b - Fix MASTER_SITES
- Add MAINTAINER line
- Add BUILD_DEPENDS line (for fixing install error)
- Remove BROKEN mark
- Shorten pkg/DESCR and move original file to files/Readme.FreeBSD
- Sort pkg/PLIST

PR:		16032
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-01-29 02:46:13 +00:00
..
Makefile From Joel's PR: 1997-08-13 09:06:55 +00:00
patch-aa port for cross compiling go32 (dos) binaries 1997-03-27 20:53:42 +00:00
patch-ab Turn on optimization 1997-04-11 17:10:33 +00:00
patch-ba From Joel's PR: 1997-08-13 09:06:55 +00:00
README.FreeBSD - Fix MASTER_SITES 2000-01-29 02:46:13 +00:00

Crossgo32 is a cross-compiler built from "gcc 2.7.2.2" which uses the
Cygnus embedded libraries to create smaller binaries. Unfortunately
there is no networking support at the moment. Binaries are created in
the COFF format and a utility is provided to convert these binaries
into DJGPPv1 exe files.

The package is composed of the following utilities:
GNU`s misc. utilities		binutils-2.7
The GNU's C Compiler		gcc-2.7.2.2  + crosspatch
Cygnus's embedded libraries	newlib-1.7.1
Cygnus's dos release utilities  dosrel-1.0

Compiling your code
===================

Compiling your code is just as easy (or should that be difficult?) as
gcc. All of the go32 compiler binaries have been installed with the
i386-go32 prefix. So, if you wanted to compile a file called "hello.c"
then you might use something like:

	i386-go32-gcc -o hello hello.c

This will produce a COFF binary called "hello". You will now need to
convert that binary into a EXE file so that it can be run on a DOS
machine. It's as easy as typing:

	i386-go32-coff2exe hello

This will produce "hello.exe". 

To run your programs you need to have a DPMI server running and the
go32.exe & emu387 files in your DOS path. Crossgo32 binaries will work
with a range of DPMI servers - I have personally had success with
Windows 95 - and there is a server available from the DJGPP web
site. The DOS files mentioned above should be in
/usr/local/share/crossgo32 (or similar on your system). Please check
the DJGPP FAQ for more information on this topic.

	http://www.delorie.com/djgpp/ (DPMI server, source, FAQs, etc)

Related ports 
============= 

This cross-compiler port was originally created by Pedro Giffuni using
the Cygnus cross-compiler FAQ and mailing list postings. You will find
other ports in the collection which use the same distribution. The
intention was to create a cross-compiler kit for all platforms
emulated on FreeBSD.

If you are interested in network support and DJGPP v2 exe files,
amongst other DJGPP bits and pieces, check out the crossgo32-dgjpp2
selection of ports. 

Share and enjoy,

- Joel
sutton@aardvark.apana.org.au