News for hackers. Stuff that matters.
Re:GCC 8.2 Released by bluecalm on Thursday July 26, 2018 @11:24AM (#17618163)
Is there any significant work done on GCC optimizer these days? Most of the changes in recent releases are about nicer error messages (which I love), sanitizers/UB detection (which I also love), new C++ features support (which I think is waste of brain power and time but well, most people like it) but there is little in optimizer department.

From me experience GCC generates by far the fastest code (faster than Intel, Clang and Visual Studio). I realize it's hard to make progress after so many years but I am wondering if there is any promising direction which is researched these days or is it only about small fixes here and there.

Re:GCC 8.2 Released by benchaney on Thursday July 26, 2018 @11:36AM (#17618286)
Optimizer improvements are generally added to major version releases. For example if you look at the 8.1 release it has a number of optimization improvements [0]. Not sure how much focus that is receiving right now though.

[0] https://gcc.gnu.org/gcc-8/changes.html

Re:GCC 8.2 Released by rurban on Thursday July 26, 2018 @11:35AM (#17618272)
There needs to be work done, because for my usecases icc is usually a few percentages faster and newer clang almost twice as fast, with proper constexpr support. It's only memset, memcpy though, so who cares.
Re:GCC 8.2 Released by rurban on Friday July 27, 2018 @07:00AM (#17625022)
To the downvoters: This is the benchmark where GCC looses big time to clang: https://github.com/rurban/safeclib/blob/master/tests/perf_me...

My clang compiled memcpy_s is faster than the handoptimized glibc assembler and twice as fast than the GCC version. So with a proper compiler you can get rid of handoptimized unportable optimizations easily. In this case memcpy, but also memset, memmove, memchr, ...