Mail Archives: djgpp/2000/10/08/14:40:03
> From: jt williams <jeffw AT darwin DOT sfbr DOT org>
> Date: Sun, 8 Oct 2000 11:17:02 -0600
>
> Strange question: When is a DOS app a "32-bit" app?
When it uses 32-bit code. It doesn't need to be a protected-mode app,
btw: Borland's 3.x compiler could produce 32-bit instructions without
going PM (but it couldn't use 32-bit pointers, of course).
> Suppose a certain application program 'foo.c' is written to compile using
> 16-bit tools (e.g., Borland). And suppose that by using '#ifdef __DJGPP__'
> statements and DOS-specific DJGPP functions (e.g., _get_dos_version(), etc),
> the code is also made to compile with DJGPP and to generate an executable that
> works (with cwsdpmi).
>
> Is 'foo.exe' now a 32-bit DOS app?
Once it's compiled with DJGPP, it's a 32-bit protected-mode
application. Only the executable can be 32-bit or 16-bit, the source
is neither, it's just a text file.
- Raw text -