www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/31/05:11:28

Sender: crough45 AT amc DOT de
Message-Id: <97Jul31.110640gmt+0100.17042@internet01.amc.de>
Date: Thu, 31 Jul 1997 10:10:10 +0100
From: Chris Croughton <crough45 AT amc DOT de>
Mime-Version: 1.0
To: eldredge AT ap DOT net
Cc: djgpp AT delorie DOT com
Subject: Re: sizeof() in #if

Nate Eldredge wrote:

> Well, there's always the method of <gasp> asking the user! My approach would
> be to define $(CC) = gcc at the top of the makefile, and let the user change
> it if they want.

I really don't like that when it's done to me, so I don't want to do it
to other people.  A better (still not good) way is to provide N
makefiles,
for each compiler known about.

> The better question is, what compiler besides GCC would be available that
> would work?

The programs I'm interested in, most.  Borland supports a "flat model"
code generation now, as do all of the Win32 ones (in console mode), and
they mostly support C++ to a similar standard as gcc as well (all
slightly
different, of course, as is inevitable while the standard still isn't
ratified).

I try not to use the gcc extensions precisely because they are not
portable.
in fact, there's no guarantee that they'll be portable across the next
version of gcc even.  I aim for as complete portability (modulo machine
dependencies like single-character input from the console) as possible,
with the few system related bits in special modules where they can be 
easily changed.

Chris

- Raw text -


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