ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/19/22:46:04

From: Laurentiu Badea <byte AT lmn DOT pub DOT ro>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can I compile a msdos source to unix exe ?
Date: Tue, 19 Nov 1996 18:57:47 +0200
Organization: Numerical Methods Laboratory
Lines: 29
Message-ID: <3291E70B.5B7A5679@lmn.pub.ro>
References: <328f2575 DOT 13493716 AT news2 DOT skynet DOT be> <01bbd4e9$a7a99d40$010200c0 AT weiqigao>
NNTP-Posting-Host: gateway-ether10-100.lmn.pub.ro
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Weiqi Gao wrote:
> 
> Thierry DELATTRE <delathie AT skynet DOT be> wrote in article
> <328f2575 DOT 13493716 AT news2 DOT skynet DOT be>...
> > Hi,
> >     I don't know exactly djgpp.
> >     I need to compile a C source written on my msdos based PC and
> >         get a EXE files to run on a UNIX based PC (my provider HD)
> >    Is this possible with DJGPP and what programs do I need to do this?
> 
> No.

Actually, if your source is more algorithm-oriented (no PC
hardware stuff like ports and such), and you stick to the ANSI C
and you use DJGPP, there is a high chance that you will be able
to port it to any Unix machine (if gcc is installed).
Of course you will need to recompile the source and get a new
executable for every platform, but it will work.

GCC is the GNU C compiler for Unixes. DJGPP is the GCC port to DOS.
So DJGPP is very compatible with gcc, if you remeber what I said above.

Laurentiu
-- 
---------------------------------------------------------------------
| Laurentiu Badea,             bytemare AT lmn DOT pub DOT ro                  |
| student at PUB,                                                   |
| Computer Science Dept.       http://www.lmn.pub.ro/~bytemare/     |
---------------------------------------------------------------------

- Raw text -


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