Mail Archives: djgpp/2003/01/06/13:00:08
Assuming that your code uses a lot of "16-bit style C" (far ptrs, bios
calls and/or ptrs to bios structs) that made TC so useful, you might want
to look into <OpenWatcom.org>. Obviously thats a topic not for this list
so I'll end my discussion on it there.
slshmeat AT sdf DOT lonestar DOT org
SDF Public Access UNIX System - http://sdf.lonestar.org
On Mon, 6 Jan 2003, Brian Inglis wrote:
> Date: Mon, 06 Jan 2003 04:50:44 GMT
> From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
> Newsgroups: comp.os.msdos.djgpp
> Subject: Re: Generate real-mode 386 DOS executables?
>
> On Sun, 05 Jan 2003 23:02:57 GMT, Spam Averse
> <nobody AT spamcop DOT net> wrote:
>
> >Is it possible to generate real-mode 386 code as a DOS executable?
> >
> >I have a project that is currently built with Borland's Turbo C/C++ v3.0.
> >(For you youngsters, this circa 1992 compiler generates 16-bit DOS
> >executables for the 86/186/286 CPUs.) The code is run on a Pentium-based
> >embedded system under MS-DOS v6.22. Not only does this compiler not
> >generate 32-bit code, but the code that it does generate is terribly
> >inefficient. I'm considering DJGPP as a replacement for the Turbo C/C++
> >compiler.
> >
> >I'm willing to take the pain of the 16-bit to 32-bit conversion, but I
> >want the pain to end there. That is, I don't want to have to install
> >himem.sys to support a protected mode application. The 640KB of DOS
> >address space is enough (Bill Gates, call your office!) for my
> >application, and it is the only program running on the system, other than
> >DOS itself. I really don't need access to extended memory, just 32-bit
> >code generation from a contemporary C compiler.
>
> Building 32 bit code is likely to double the amount of data and
> stack space you require for ints and may increase the code size
> by some factor, so you may not be able to run in 640K.
>
> >So... can I use DJGPP to generate a 32-bit real mode DOS application?
>
> Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
> --
> Brian DOT Inglis AT CSi DOT com (Brian dot Inglis at SystematicSw dot ab dot ca)
> fake address use address above to reply
> abuse AT aol DOT com tosspam AT aol DOT com abuse AT att DOT com abuse AT earthlink DOT com
> abuse AT hotmail DOT com abuse AT mci DOT com abuse AT msn DOT com abuse AT sprint DOT com
> abuse AT yahoo DOT com abuse AT cadvision DOT com abuse AT shaw DOT ca abuse AT telus DOT com
> abuse AT ibsystems DOT com uce AT ftc DOT gov spam traps
>
- Raw text -