3 ms·
I think gcc is in some ways more tested than professional compilers given the huge range of code thrown at it. It can fall down in performance on workloads that
by pjc50 12y ago
I think gcc is in some ways more tested than professional compilers given the huge range of code thrown at it. It can fall down in performance on workloads that things like ICC are tuned for, but performance is nearly always structural rather than micro-optimisable.
- sounds 12y agoTo be fair, the micro-optimizations are nice, and being able to just throw a switch and turn them on is nice. Of course you're right that a compiler is "never" (boy, prove me wrong, then shut up and take my money!) going to convert Array-of-Structs to Struct-of-Arrays code, for example.
- orodley 12y agoJonathan Blow is doing some very exciting stuff in this area with his new language. Check out his latest talk on YouTube about data-oriented programming.
- sanxiyn 12y agoFYI, LLVM was a byproduct of Chris Lattner's PhD thesis titled "Macroscopic Data Structure Analysis and Optimization", which aimed to do exactly that. It is still a great paper. Alas, it was found that doing the basics well is much harder and larger task than doing the proof of concept of very clever optimizations.