From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: Need information !!! Date: 26 Oct 1997 05:50:09 GMT Organization: The National Capital FreeNet Lines: 44 Message-ID: <62ulmh$g1a@freenet-news.carleton.ca> References: <34501672 DOT 6479F20A AT microtec DOT net> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet5.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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