Author: David Rasmussen
Date: 05:10:18 08/18/01
Go up one level in this thread
On August 18, 2001 at 03:40:01, Frank Phillips wrote:
>On August 18, 2001 at 03:06:38, pavel wrote:
>
>>simple questions,
>>
>>whats the best Commercial C++ compilers out there? (in your opinion)
>>and how good is borland 5.02?
>>
>>tnx
>>pavs.
>
It depends on what you mean with "best", and what platform you're using etc. One
of the absolut best commercial compilers regarding code generation and
optimization is the KAI C++ compiler, but that is very expensive. Comeau C++
might be a good choice too, but I haven't tried it. Both of these are _very_
compliant to the standard, which can't be said of any of the "big" ones (MS,
Borland or even gcc (at least the pre-3.x branch).
>My program (mostly C) is 25-30% faster with MS VC++ (for Windows) than gcc-2.96
>under Linux. If I recall correctly Borland under Windows was similar to gcc.
>
>MS is best (for speed) but you need to be prepared to spend a lot of money to
>buy the non-learning version if you want fast executables.
>
>Frank
I have had similar results. Borland and gcc performs about the same (gcc was a
bit better, and more compliant), but MSVC++ was about 20-30% faster. Intel's C++
compiler can be even better than MSVC++ if used correctly, and it is more
compliant. Compliancewise, MSVC++ is the worst. you can't even do
for (int i = 0; blahblah)
{
...
}
for (int i = 0; blehbleh)
{
...
}
because the scope of the i variable is from it's declaration and to the end of
the next outer scope, instead of only in the scope of the for loop, as the
standard says. It sucks in that regard.
I guess the most realistic choice for Windows is either Intel C++ or Comeau C++
(if it performs well). Comeau C++ is only $50.
David
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.