Mail Archives: djgpp/1997/01/19/16:49:09
ya wrote:
> After writing and compiling a few simple programs with DJGPP, I've
> noticed that the EXE is rather large... 80k! I'm guessing that this is
> due the the compiler attaching all of the libraries and/or headers
> used. If so, shouldn't the compiler check to see what code the program
> actually needs, and only use that? This program is still quite small,
> but a similar program compiled in TP6.0 is just a few bytes. Why is
> this?
DJGPP is a 32 bit protected mode compiler.
So it attaches to the executable code for a dos extender&DPMI support
like CWSDPMI and it kiks your kode into protected mode.
This takes some kilos...
But for a "hello world" program you don't need DPMI or 32bit code or
protected mode or whatever advantage DJGPP has.so a "hello world"
program is best made via pascal or turbo C.
The advantages Of 32bit DPMI code will show up on *real* projects.
--
tudor 'at' cam 'dot' org
yoda69 'at' hotmail 'dot' com
http://www.cam.org/~tudor
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d-(--) s(-):(+) a? C+ UL>++++ P L>+++++ E- W++ N o K---(----) w---
O---- M-- V-? PS+++ PE Y PGP t+ 5-- X+++>++++ R tv b+ DI D+ G e->++
h>++ r- y>+++++
------END GEEK CODE BLOCK------
- Raw text -