www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/10/18:47:07

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 <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <K%0X8.3190$F%6.145953@newsfep1-win.server.ntli.net>
(Moosehead AT tesco DOT net)
Subject: Re: LD - the DJGPP linker
References: <K%0X8.3190$F%6 DOT 145953 AT newsfep1-win DOT server DOT ntli DOT net>
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019