Date: Wed, 10 Jul 2002 17:46:47 -0400 Message-Id: <200207102146.g6ALkln19047@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT delorie DOT com using -f From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (Moosehead AT tesco DOT net) Subject: Re: LD - the DJGPP linker References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk There's a lot more behind the scenes than what you, the programmer, sees. First, you need a DPMI server. It does the actual switches between real and protected mode. Second, you need djgpp's stub loader, a 2k chunk of 16-bit code that loads the program into memory and performs the initial switch into protected mode. Third, you need djgpp's crt0.o and friends which parse command line options, initialize stdio, etc. Fourth, you need djgpp's C library, which manages the DPMI calls to perform such functions as open(), exit(), etc. The net effect of all this is to allow you, the programmer, to write protected mode programs without having to worry about the protected mode part of it.