Mail Archives: djgpp/1998/02/25/20:00:53
From: | Vic <tudor AT cam DOT org>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: (none)
|
Date: | Wed, 25 Feb 1998 19:29:31 +0200
|
Organization: | Communications Accessibles Montreal, Quebec Canada
|
Lines: | 20
|
Message-ID: | <34F454FB.4102@cam.org>
|
References: | <01bd4243$580f9460$2c651ac8 AT hellmachine>
|
NNTP-Posting-Host: | dialup-509.hip.cam.org
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Lisandro Puzzolo wrote:
> I will be very glad if you send me some information about the
> way DJGPP links 16bit code with the other code (32bit). My teachers
> insist that DJGPP can link 16bit dlls whith normal 32 bit code.
DJGPP normally does not link 32 and 16 bit code together. to use DLLs
with DJGPP you need a utility called RSXNTDJ, which you can find in the
DJGPP directory on a simtel mirror. I don't really know how RSX works,
but it replaces the DJGPP linker, I think.
> Another thing I need to know, is how DJGPP does the conversion between
> 32bit code, that it gererates and the 16bit operating system (DOS)
> where it runs. I know it uses coff2exe, but I need to know how it does
> it internallly. Whatever you send me, it will be gold, because I can't
Well, the code is never transformed into 16 bit. COFF2EXE just
transforms a COFF image into a DOS exe (it adds a stub to the code)
this stub will then launch CWSDPMI for DPMI services. CWSDPMI is a DOS
extender. The djgpp code runs in 32 bit flat memory protected mode, and
this environment is either provided by an OS like windoze or by CWSDPMI.
A watcom program for example will use DOS4GW as a dos extender.
--
--> http://www.cam.org/~tudor <--
- Raw text -