delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/08/04:43:23

Date: Wed, 8 Oct 1997 10:41:30 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Gautam N. Lad" <gautam AT interlog DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP+Allegro: Porting from DOS to Linux. Easy or Hard!?!
In-Reply-To: <61d7tn$26e$2@news.interlog.com>
Message-ID: <Pine.SUN.3.91.971008104100.28262D-100000@is>
MIME-Version: 1.0

On Tue, 7 Oct 1997, Gautam N. Lad wrote:

> If I make a program (rather big; it's a graphical 3D modeller) using
> DJGPP and Allegro, could I re-compile the program on Liunx, assuming
> I had a Linux port of DJGPP and Allegro (do those port exist?)
> really easily, or would I had to tweak a lot of stuff?

It depends on how well will you write it ;-).  You need to watch out
for DOS- and DJGPP-specific stuff and either avoid it (and use
portable stuff instead, perhaps at a price of performance) or
encapsulate platform-dependent functions in portable wrappers and
write a platform-specific version of each such function.

Some potential problems to watch out for:

     - DOS-style pathnames (backslashes, drive letters);

     - non-POSIX header files and library functions;

     - direct device and screen access.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019