Mail Archives: djgpp/1997/10/25/01:16:31
At 11:30 10/23/1997 -0400, Les Duchemin wrote:
>I Had conpile prog. with just
>main()
>{
> return 0;
>}
>
>and the size of the EXE was 61 768 bytes.......
>It is normal ??
Yes. See FAQ 8.15 for reasons why and how to make it smaller.
>
>Also...
>Do the compiler is absolutely obligate to make protected mode program!!
Yes. You can't build your program without a compiler. (Unless it's written
entirely in assembly, or something...)
>if Yes please :
>- I want know the advantages..
Advantages of protected mode? Basically:
- Direct access to large amounts of memory and swap space (up to 256M with
current CWSDPMI version)
- Bugs in your program cannot damage the system, and will be caught by the
hardware and you can find out. (NULL pointer derefences, etc.)
>- And I need help on DPMI if it have bigs advantages...
DPMI is an interface into protected mode from DOS. It's a fairly standard
interface and doesn't need a DOS extender, so DJGPP uses it.
I hope I answered your questions. If not, sorry, maybe explain them in more
detail.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -