www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/24/01:35:13

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DPMI incorporation...
Date: Tue, 24 Dec 1996 00:29:47 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 25
Message-ID: <32BF947B.495F@cs.com>
References: <19961220 DOT 124010 DOT 6919 DOT 6 DOT jesusfreak44 AT juno DOT com> <32BC484E DOT 3563 AT cs DOT com> <Pine DOT GSO DOT 3 DOT 95 DOT 961223231822 DOT 3071F-100000 AT sparkie DOT gnofn DOT org>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp101.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Colin W. Glenn wrote:
> 
> Question!  Is it possible to compile programs without DPMI?  I'm looking
> to create a series of small utility programs, and I'd rather they load
> fast, without the need to load something else to run.

Unfortunately, it is not.  DJGPP requires a 32-bit environment to run
in, and plain vanilla DOS just won't cut it.  There are methods you can
use to reduce the size of DJGPP programs (see the FAQ), but the absolute
minimum for a useful distributable program is 20-30k for the program and
another 20k for CWSDPMI.  Don't feel turned off - this is MUCH smaller
than any other 32-bit compiler in existence.

If you really want a tiny little 10k program, then you'd be better off
using a dinky 16-bit compiler for the small stuff, or coding in pure
assembly and nuking all the startup code, which can get pretty messy. 
;)

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I      |   mailto:fighteer AT cs DOT com   |
| God's final message to His Creation: | http://www.cs.com/fighteer |
| "We apologize for the inconvenience."| Fight against proprietary  |
|                      - Douglas Adams | software - support the FSF!|
---------------------------------------------------------------------

- Raw text -


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