From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Gnu C Preprocessor in MSDOS Date: Wed, 16 Oct 1996 21:28:50 -0700 Organization: Three pounds of chaos and a pinch of salt Lines: 46 Message-ID: <3265B602.3031@cs.com> References: <3263c8f2 DOT 4643469 AT news DOT zippo DOT com> <01bbbb50$c4759a80$2dac399d AT a-cnadc5> <3264eaa4 DOT 78795075 AT news DOT zippo DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp106.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: mist AT cyberus DOT ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp [note: some newsgroups deleted from headers] mist AT cyberus DOT ca wrote: > > >> I am interested in trying to convert the Gnu C preprocessor to run > >> under DOS. It can run in large-model or huge-model executable. I > >> haven't yet started to try to do this, I would like some advice from > >> this newsgroup first. > >> > >> Has anyone tried it? Are there architectural reasons why the > >> preprocessor (just the preprocessor, not the entire compiler) would > >> have trouble running in 16-bit mode, or with huge-pointers as default? > >> I specifically want to avoid having to compile it for 32-bit with DOS > >> extender, I want a *16-bit* executable. Is your reluctance to use 32-bit code based on not wanting to need a DPMI extender, or on not having a 32-bit compiler to create the DOS cpp with? In any case, in DJGPP v2 there exists a full, completely supported port of GNU C/C++ to MS-DOS, running in 32-bit DPMI with whatever provider/host you care to use. It can run on 386 or higher machines under Windows 3.x, Windows 95, OS/2 dos shell, Linux dosemu, QEMM/QDPMI, 386MAX, or plain DOS using a DPMI host written specifically for DJGPP. It includes ports of every part of the GNU compiler, including preprocessor, compiler, assembler, linker, and MUCH more. It is freeware, and ported, ready-to-compile source for all tools is available on demand. For info on DJGPP, visit http://www.delorie.com/djgpp or download the file ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/readme.1st. BTW, I don't honestly think that the GNU tools can be ported to 16-bit, but I'm the wrong person to ask. :) There are so many advantages to running in DPMI that I don't see why anyone would deliberately insist on 16-bit code without some overriding reason. -- John M. Aldrich, aka Fighteer I -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W++ N++ o+ K? w(---) O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++ h!() !r !y+() ------END GEEK CODE BLOCK------