www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/03/23:01:19

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP and Linux
Date: Tue, 04 Nov 1997 07:19:05 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 34
Message-ID: <345ECC69.7FA4@cs.com>
References: <resta-0311971951450001 AT mac-resta DOT imc DOT pi DOT cnr DOT it>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp231.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

G. DEL ZZ FROM ADDR Resta wrote:
> 
> So a lazy question : it will be better (faster) to use djgpp under
> win95 or gcc under linux, under the above assumptions of no-user-interface ?
> I just wonder if there is a relevant difference.
> Does anybody know ?

Since both gcc under DJGPP and gcc under Linux generate code for the
80386+ CPU, they should be roughly identical in terms of performance,
with two main exceptions (well, one really...)

- Code which, under DOS, requires switches from protected mode to real
mode (some interrupts, BIOS functions, etc.) will run faster under
Linux, because it is a native pm environment; no mode switching is
required.

- Programs will load faster under Linux because of significantly reduced
overhead to enter protected mode and set up the required DPMI
environment.  Linux also features shared libraries, as I understand, so
this may further reduce loading time.

However, since the time-critical portions of the code are running on the
same CPU and created by essentially the same compiler, there shouldn't
be any noticeable speed difference.

If anybody knows different, please correct me.  :)

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Autocracy is based on the assumption|
|       aka Fighteer I       | that one man is wiser than a million |
|   mailto:fighteer AT cs DOT com   | men.  Let's play that over again,    |
| http://www.cs.com/fighteer | too.  Who decides?"   - Lazarus Long |
---------------------------------------------------------------------

- Raw text -


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