Date: Wed, 9 May 2001 13:47:20 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Brian Chance cc: DJGPP Delorie Mailing List Subject: Re: DPMI In-Reply-To: <000801c0d7ee$f0f8cf40$0c4011d4@telekabel.at> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 [Please don't post in HTML.] On Tue, 8 May 2001, Brian Chance wrote: > I realize that Djgpp links its output natively to load the DPMI server > for protected mode compatibility. Is it possible to produce files which > are independant of DPMI with Djgpp? DPMI is used not only for entering the protected mode, but also for all system calls issued by the low-level library functions. Memory allocation, file I/O (including reading the program into extended memory from its .exe file), hooking hardware interrupts, support for debugging programs--all these and more are handled via DPMI services, because issuing real-mode interrupts from a protected-mode program is a tricky business. If you remove DPMI, you will have to rewrite all that low-level stuff (or give up the functions which need it).