delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/04/23/05:30:04

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Trouble of using very large arrays
Date: 23 Apr 2004 09:28:43 GMT
Lines: 29
Message-ID: <c6ankb$8m3gj$2@ID-231750.news.uni-berlin.de>
References: <c68d6j$g57$03$1 AT news DOT t-online DOT com> <c68e70$96gqq$1 AT ID-231750 DOT news DOT uni-berlin DOT de> <c68u9l$9fevb$1 AT ID-79865 DOT news DOT uni-berlin DOT de> <urih80l3b6om4kbblr8jthpjbm1i7cp6gc AT 4ax DOT com> <c6alve$9r230$1 AT ID-79865 DOT news DOT uni-berlin DOT de>
NNTP-Posting-Host: accip02.physik.rwth-aachen.de (137.226.33.41)
X-Trace: news.uni-berlin.de 1082712523 9113107 D 137.226.33.41 ([231750] 10357)
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Alex Vinokur <alexvn AT big DOT foot DOT com> wrote:
> I prefer to compile C-program with C++ compiler.

I'm pretty sure you won't like to hear this, but: that preference is
silly to the point of braindead, and has been for a *long* time,
arguably ever since the first people came up with that idea.

There may have been a point to this strategy back in the days when C++
compilers actually were better at picking up problems in C code than
the C compilers of that time.  But that time is *over*, and has been
for about as long as DJGPP exists.  GCC is way better at finding
problematic C code than G++ can ever be.

What is it that you believe you're going to gain from this, compared
to using the right tool for the task?

*) Use the C++ compiler, for whatever advantages you believe it has, but
   be consequent and write C++ code, then.

*) Write C code and use the C compiler for compiling it.

> $ gpp foo.c
> error: invalid conversion from `void*' to `unsigned int*'

That error is a false negative created by incorrect use of the tools.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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