Mail Archives: djgpp/1997/11/28/12:16:19
On 28 Nov 1997 01:53:02 GMT in comp.os.msdos.djgpp kifox <kifox AT hotmail DOT com> wrote:
: How compatable is DJGPP with C code writen using Turbo C and other
: compliers?
: What I mean is how hard would it be to port programs written using these
: compliers over to DJGPP?
How long is a piece of string? :)
It depends on a very large extent what the code you're using is like.
If it's ANSI-compliant, well-written, portable code, the porting
should be fairly trivial. However, I don't think anybody ever wrote
portable code on Turbo C... ;)
If it uses many non-standard features, especially if it uses graphics
or other low-level hardware-specific devices, the porting will be more
work.
For detailed information on what sorts of things will be awkward to
port and how to go about adapting certain things to work in a DPMI
environment, I suggest you look at the FAQ section 17 and particularly
section 18. If your code uses Borland's BGI graphics interface, you
can get djgpp's grx graphics library and the bcc2grx package, which
should help you in porting it to djgpp. Or you could get Allegro,
which I personally prefer, but you'll need to change all the graphics
commands. Allegro has support for other low-level devices too.
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -