Mail Archives: djgpp/1996/12/30/19:51:52
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: <this space for rent> |
---------------------------------------------------------------------
- Raw text -