From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: DPMI incorporation... Date: Mon, 30 Dec 1996 18:22:44 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 40 Message-ID: <32C878F4.30A1@cs.com> References: Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp108.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Colin W. Glenn wrote: > > I'm not writing a game, just a bunch of utility programs. Any 32-bit compiler more easily lends itself to large programs than to small, just because of all the overhead involved. Try producing a "small utility program" in Watcom's 32-bit compiler, and compare the total size of the executable plus all the support programs to the same thing in DJGPP. Believe me, DJGPP wins by a long shot. Here are the various things you can do to keep the cost of small programs down: - Require a DPMI environment like Windows or 4DOS, and simply tell users that they can't run in DOS unless they get cwsdpmi from such and such a place. - Have your programs install cwsdpmi in a common directory on the user's computer, or recommend in the instructions that the user him/herself do this. - Use the PMODE stub, which is bindable to DJGPP executabls. Warning: PMODE does not support several DPMI 0.9 functions, particularly virtual memory. - Get the source code for cwsdpmi from Charles Sandmann and create a fully bindable DPMI host yourself. - Use one of the dinky freeware 16-bit compilers out there to make your small programs. > I'm sorry, I'm asking can you have the compiler STOP after producing the > ASM code from your C file? gcc -S ... Look it up in the gcc docs for details. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Plan: To find ANYONE willing to | http://www.cs.com/fighteer | | play Descent 2 on DWANGO! | Tagline: | ---------------------------------------------------------------------