2013/12/27 niXman <[email protected]>
> Óscar Fuentes 2013-12-25 00:51:
> > In my projects, programs compiled with Clang (since 3.2) run about 5%
> > faster than with g++ (4.8.1). That's on Linux x86_64.
> My tests indicate the opposite.
>
> > Diagnostics are much better than any other C++ compiler,
> What are you talking?
>
> > Standards compliance is second to none
> What are you talking?
>
> > great stability...
> Why you argue about the compiler which only some few years and which is
> used in approximately 2% of open source projects? =)
> I think about three-five years it will be possible to talk about a
> certain stability Clang.
>
> The fact that I also was doing research in order to understand whether
> it makes sense to use Clang щк тще. And my answer is - no, there is no
> sense to use it. Maybe after a few years...
>
OK, now I don't want to start some sort of flame war, but keep the facts
straight:
1. Clang still has superior diagnostics which succeed at pointing at the
right erronous piece of code where GCC 4.8 fails to do so.
2. Apple, thus all of the Mac OS X and iOS environment, has dumped GCC
completely. FreeBSD is working hard on removing the last bits of the GNU
toolchain from their distro. On Linux, Clang is used often as the
alternative compiler partly due to 1 above. You can not seriously think
Clang is not stable.
3. Clang vs GCC executable performance is indeed still not quite the
same... although the difference is 5-10% on average (performed in my mind
of memories of numerous benchmarks on various sites). Note that this
difference, although mostly in favour of GCC, also swings in favour of
Clang sometimes.
4. A compiler is not used "in" open source projects. It is used to compile
open source projects "for". See point 2.
5. Numerous other language compilers use LLVM as a backend to compile to
native code, just as Clang does for C family languages.
6. On Windows, Clang's C++ support sucks. C is all fine and dandy, and
should be near 100% right. C++ is missing nearly all things ABI related,
and dllexport support for classes. Also, it is necessary to use GCC's
libstdc++ for now, as libc++ is not yet usable within its own ecosystem
(see ABI issues, which include runtime support libraries)
7. Clang is getting (or already has partial) support for OpenMP, OpenCL,
and other fine extensions to our favourite languages in the near future.
So no, Clang is far from unstable. It is often also more correct standards
wise, although when some bug in GCC is detected and Clang does it
differently, both quickly align to do The Right Thing.
But yes, Clang on Windows for anything C++ is limited. On all other
platforms, this is not a problem whatsoever.
Cheers,
Ruben
>
> --
> Regards, niXman
> ___________________________________________________
> Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
> http://sourceforge.net/projects/mingw-w64/
> ___________________________________________________
> Another online IDE: http://liveworkspace.org/
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public