User forums > General (but related to Code::Blocks)

Quick&dirty C++ language conformance tests

(1/6) > >>

Michael:
Hello,

I have found this website which provides quick&dirty C++ language conformance tests for the Win32 platform. As C::B supports them, this website could be useful for deciding which compiler is best suitable for a specific project.

Michael

takeshimiya:
It appears then, that the most c++ standard compliant compiler is:
-GCC >=3.2 at the top
-DMars >=8.45 very good also
-MSVC >=7.1 rather good nonetheless

-OpenWatcom <=1.3 pretty bad
-OpenWatcom >=1.4 Dev catching up, but still worse than others

Michael:
Despite all, GNU GCC seems to be a good choice (I think there was a thread about comparing speed, executable size, etc of several compiler. May be an Intel Compiler C++ thread).

MSVC is also improving. MSVC 2005 Express seems also to compile library as Loki (see http://msdn.microsoft.com/vstudio/express/visualc/features/language/default.aspx), which is not so evident.

But none is absolutly perfect...there is still some work to do :).

Michael

thomas:
I think this comparison (although still in favour to gcc) is quite unfair. They compare a 3 year old version of gcc with the current release of DM and the current release of Microsoft Visual C++. However, it makes me smile that gcc still beats them.


On a different subject, I recently found out something that I'd like to share with the many people who keep bashing gcc for its poor executable size. Read the manual. Yes, it sounds like a stupid recommendation, but seriously... do it.

You can not only tell the compiler to optimize the code, but you can also pass optimization flags to the linker. This is something few people seem to know (I did not know myself until two weeks ago). By passing -O2 to the linker, I managed to reduce the executable size of a program of mine by 18%.  :)

takeshimiya:
GNU/GCC is not that bad regarding executable size (still worse compared to others).

When it looses and badly, is in compilation/linkage time. I mean, compiling wx+cb can take more than 30 minutes in my new pc with mingw 3.4.
However, I have hopes that GCC post-4.1 will be much faster thanks to the new optimizations and features it introduces.

Navigation

[0] Message Index

[#] Next page

Go to full version