Mail Archives: djgpp/1997/10/26/15:32:25
Les Duchemin (pentag AT microtec DOT net) writes:
> I Had conpile prog. with just
> main()
> {
> return 0;
> }
>
> and the size of the EXE was 61 768 bytes.......
> It is normal ??
Yeah, there are symbol tables and debug info in there. Use strip, or
compile with -s, to get a smaller EXE when you have a final product and
are done debugging.
> Also...
> Do the compiler is absolutely obligate to make protected mode program!!
Yup.
> if Yes please :
> - I want know the advantages..
Use all RAM available, no 640K crap, no memory model crap
Use disk swap, in WIndows or in DOS, for added memory
Prints stack traces to locate memory allocation errors and crashes,
(usually) instead of hanging the machine, trashing the FAT and other
real-mode horrors. If you write through a bogus pointer, it tells you
where and puts you at the DOS prompt, instead of hanging or blowing chunks all
across your disk drive.
> - And I need help on DPMI if it have bigs advantages...
Same as above, plus, DPMI guives ways to access memory mapped devices, DOS
memory, video memory, and the like, and provides compatibility with Windows.
(Older versions had no DPMI, and thus any graphics use segged out in
Windows. Now graphics can be done anywhere.)
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -