News for hackers. Stuff that matters.
Re:C Isn't a Language by tmtvl on Friday February 06, 2026 @07:20AM (#46911926)
Don't forget about branch prediction (GCC may have __builtin_expect, but that's not standard C).
Re:C Isn't a Language by direwolf20 on Friday February 06, 2026 @07:33AM (#46912019)
The compiler usually can't do anything about branch prediction. Expect is more about keeping cold paths out of the cache.
Re:C Isn't a Language by pjmlp on Friday February 06, 2026 @08:10AM (#46912398)
Actually that was one of the problems with EPIC architectures, where compilers are expected to be the ones doing those kind of optimizations.