1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

GCC 4.8 vs. LLVM/Clang 3.3 On Intel's Core i7 4770K

Michael Larabel

Published on 21 June 2013
Written by Michael Larabel
Page 1 of 3 - 14 Comments

Complementing the earlier Phoronix article about optimized binaries for Intel Haswell CPUs via the "-march=core-avx2" Haswell compiler optimizations, in this article is a comparison of the GCC and LLVM/Clang compilers when targeting the new Core i7 4770K CPU. GCC 4.7.3, GCC 4.8.1, LLVM Clang 3.2, and LLVM Clang 3.3 were the tested compilers under Ubuntu Linux when seeing how well these different compilers optimized for Haswell.

For this testing, GCC 4.7.3/4.8.1 and LLVM Clang 3.2/3.3 were all built from source and using similar configure options for producing release-ready optimized builds. A variety of open-source C/C++ tests were carried out on the competing compilers while using the same CFLAGS/CXXFLAGS across all of the testing. All benchmarking was handled in a fully automated and reproducible manner using the Phoronix Test Suite benchmarking software for Linux, OS X, BSD, Solaris, and Windows platforms.

The CFLAGS/CXXFLAGS set for the environment were "-O3 -march=core-avx2". In Terms of the core-avx2 optimizations, see the earlier article on optimized binaries for Haswell. Both GCC 4.7 and LLVM Clang 3.2 had early support for Intel Haswell CPUs, but the support is now much more polished in the latest releases of GCC 4.8 and LLVM Clang 3.3.

This compiler comparison and testing is quite straightforward so let's get immediately to the results from this Core i7 4770K system running an Ubuntu 13.10 development snapshot with the Linux 3.10 kernel.

Latest Articles & Reviews
  1. Intel Broadwell: GCC 4.9 vs. LLVM Clang 3.5 Compiler Benchmarks
  2. Ubuntu vs. Fedora Linux On Lenovo's X1 Carbon With Core i7 Broadwell
  3. Ubuntu 15.04 Is The Easy Path To Better Performance On Intel Broadwell
  4. NVIDIA's Latest Maxwell Line-Up Against AMD With Catalyst On Linux
  5. Preliminary Tests Of Intel Sandy Bridge & Ivy Bridge vs. Broadwell
  6. AMD FX-8320E Performance On Linux
Latest Linux News
  1. Calamares 1.0 Distribution-Independent Installer Framework Released
  2. Librem 15 Linux Laptop Set To Close At Around $400k USD
  3. Virtual GEM To Increase Mesa's Software Rasterizer Performance
  4. Open Lunchbox: Yet Another Open-Source Laptop Attempt
  5. Wayland/Weston 1.7 Release Candidate
  6. Bugzilla 5.0 Is Coming Soon With New Features
  7. Linux Benchmarking... Even Faster & A Very Interesting February
  8. Does VirtualBox VM Have Much A Future Left?
  9. HAMMER2 File-System Is Still Slowly Coming Together
  10. The Better Looking Window Decorations For GNOME 3.16
Most Viewed News This Week
  1. PlayStation 4 System Compiler Support Landing In LLVM
  2. Linux "GHOST" Vulnerability Hits Glibc Systems
  3. LibreOffice 4.4 Is Coming Soon With New Features
  4. Broadwell Linux Ultrabook Running MUCH Cooler Than Haswell
  5. LLVM Adds Options To Do Fuzz Testing
  6. LZHAM 1.0 Lossless Data Compression Codec Released
  7. Vivaldi: A New Chromium-Powered, Multi-Platform Browser
  8. LibreOffice 4.4 Released With Better OOXML Support, UI Improvements