delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/06/00:01:07

X-Trace-PostClient-IP: 68.147.131.211
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?
Organization: Systematic Software
Message-ID: <fs0i1vsek23qek3r5apanjmjuc1o4ethjn@4ax.com>
References: <BQ2S9.280216$a8 DOT 123208 AT news4 DOT srv DOT hcvlny DOT cv DOT net>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Lines: 35
Date: Mon, 06 Jan 2003 04:50:44 GMT
NNTP-Posting-Host: 24.71.223.147
X-Complaints-To: abuse AT shaw DOT ca
X-Trace: news2.calgary.shaw.ca 1041828644 24.71.223.147 (Sun, 05 Jan 2003 21:50:44 MST)
NNTP-Posting-Date: Sun, 05 Jan 2003 21:50:44 MST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


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