www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/17/17:50:34

From: newhallw AT escmail DOT orl DOT mmc DOT com
Date: Mon, 17 Jun 96 17:35:37 EDT
Message-Id: <9606172135.AA07361@cvfive>
To: djgpp AT delorie DOT com
Subject: Re: best UNIX-->DOS porting compiler?

> From owner-djgpp-list AT delorie DOT com Mon Jun 17 17:17:23 1996
> Xref: news2.mv.net comp.os.msdos.djgpp:5091 comp.unix.programmer:19421
> From: brian AT tcpip DOT geek DOT net (Brian Mitchell)
> Newsgroups: comp.unix.programmer,comp.os.msdos.djgpp
> Subject: Re: best UNIX-->DOS porting compiler?
> Date: 17 Jun 1996 15:52:17 GMT
> Organization: Saturn Internet - ISP
> Lines: 33
> Reply-To: brian AT saturn DOT net
> Nntp-Posting-Host: tcpip.geek.net
> X-Newsreader: slrn (0.8.8.1 UNIX)
> To: djgpp AT delorie DOT com
> Dj-Gateway: from newsgroup comp.os.msdos.djgpp
> Content-Length: 1315
> 
> On 17 Jun 1996 10:35:47 GMT, Allen Pouratian <allenp AT nima DOT eecs DOT berkeley DOT edu> wrote:

> >I am porting a Unix (Linux) application to DOS so I can run it under
> >a DOS shell under Windows 3.11.  Have I chosen the easiest path for porting
> >by using Turbo C++ 3.0, or am I better off with another compiler?
> >
> >1)	Does gcc for dos exist?  Does the package come with the appropriate 
> >	suite of unix like utilities?

There is gnu-win32 which is a port of the gnu compiler which supposedly will
let you compile win32 code(windows applications) as well as DOS console apps,
and there is also RSX--another windows application compiler. Gnu-win32 
supposedly supports UNIX utilities(I think it runs Bash and a few other
shells, too)


> >
> >2)	Can I run DJGPP programs under a Win3.1 shell?  How bout a Win95
> >	or a WinNT shell?
> 
> It might in Real mode 3.1 (is that still supported?) but if win 3.1 goes
> into pmode, I'm almost 100% sure that djgpp compiled programs will not work.

I believe that Windows 3.1 provides DPMI services for clients such as programs
compiled with DJGPP. If you want to compile windows applications, look at 
RSX(another gcc->intel port) if Windows 3.1 does not provide DPMI services
then get CWSDPMI from ftp.delorie.com(or one of its mirrors).  

>3)	Would Windows compilers like MSVC or Borland C++ for windows ease
> >	my porting pains?  (Mostly getting a shareware tiff library written
> >	with ANSI C working).
> >
> 
> I think it depends on the specific program. If it is a X based program, the
> windows interface might very well simplify things.

On ftp.delorie.com(or one of its faster mirrors) there is a library which lets
you compile X11 programs with djgpp(it requires the GRX 2.0 library I believe)

- Raw text -


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