Mail Archives: djgpp/1997/07/31/05:11:28
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 -