Hacker News new | ask | show | jobs
by GuB-42 767 days ago
Size is very important, and in may experience less memory usage tend to beat using less instructions. So I understand Clang decision to trade size for complexity.

Clang developers are not stupid, if they did that instead of copying what GCC or MSVC did (they both predate clang), there is a good reason, and my guess is that it is better aligned with how modern architectures and optimizers work. Anyways, that's a tradeoff, but on a modern high performance computer, intuitively, I would side with clang.

1 comments

On the other hand, ABI incompatibility has a cost (not that GCC has stayed ABI-compatible with itself...)