delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/30/08:50:35

From: firewind <firewind AT metroid DOT dyn DOT ml DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How does it work?
Date: 30 Oct 1997 01:00:46 GMT
Organization: Netcom
Lines: 34
Message-ID: <638m7u$kh7@dfw-ixnews12.ix.netcom.com>
References: <878080533 DOT 29493 AT dejanews DOT com>
NNTP-Posting-Host: elp-tx1-24.ix.netcom.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Simon DOT zalar AT guest DOT arnes DOT si wrote:
> Hi all!

> I would like to know how to run a program written with DJGPP under DOS.

Type the name of the program at the command line and press enter.

> Is there anything quicker and easyer than DPMI server?

First, you may not use anything but DPMI. Second, there is nothing slow or
uneasy about DPMI. A DOS extender can be insanely complicated (and anyway,
you put onerous restrictions on how a program may be run) and can be
slower.

> How did they do it with Quake?

Obviously, they used DPMI, since the program is compiled with DJGPP.

> I made a proggy that counts from 1 to 10.000 and ran it on win95.
> It took it 9 sec.  I wrote the same program with Qbasic and it
> took only 4.5 sec. Where is the catch?

Mmmhmm. And your conclusion is what? How long did it take to start-up and
initilize QBasic? Did you include this time in the execution time for your
(-extremely- trivial) program? If not, why not? If you timed the execution
of your DJGPP program from enter-press to command prompt, you included
start-up and initilization time for -it-.

-- 
[-                               firewind                                   -]
[-   email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work)  -]
[-          "You're just jealous because the voices talk to -me-."          -]
[-                   Have a good day, and enjoy your C.		            -]
[-          (on a crusade of grumpiness where grumpiness is due)            -]

- Raw text -


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