GCC vs. LLVM Clang On NVIDIA's Tegra K1 Quad-Core Cortex-A15
Phoronix: GCC vs. LLVM Clang On NVIDIA's Tegra K1 Quad-Core Cortex-A15
Recently I posted new benchmarks showing LLVM's Clang compiler performing well against GCC from AMD's x86-based Athlon APUs with the performance of the resulting binaries being quite fast but not without some blemishes for both of these open-source compilers. In seeing how the compiler race is doing in the ARM space with many ARM vendors taking interest in LLVM/Clang, here's some fresh benchmarks of both compilers on NVIDIA's Tegra K1 SoC found by the Jetson TK1 development board.
x86 vs ARM on GCC vs LLVM
It's interesting to see how the situation seems to be different when going from x86 to ARM when comparing GCC and LLVM. On x86, GCC pretty much wins in all but a few tests. Move to LLVM and the situation flips. ARM is the future for much of the stuff I'll be doing, so this is very good to know.
Throw in MP and LLVM still gets beaten quite badly. Once that support makes it in to LLVM, GCC is going to take quite a beating on ARM--if MP is anything like single threaded performance.
compare object code size as well please
Oh and while I'm at it:
How about you also compare the code size of the output the compilers produce?
(I've been playing with llvm-svn on MIPS a bit, and so far it consistently produces larger object files than GCC)
When OpenMP 4.x lands in LLVM proper
I fully expect Michael to stop running OpenMP enabled tests when comparing GCC vs. LLVM/Clang.
Soon, very soon, not a single test [other than the highly tailored C-Ray for GCC] will show GCC remotely near its competitor in results. The more LLVM/Clang evolves the less GCC becomes relevant.