Re:The Little Bool of Doom (2025)
by exmadscientist on Monday February 09, 2026 @01:19AM
(#46942131)
Learning about how compilers optimize code isn't really knowledge that goes out of date. Yes, things get reshuffled or new ideas appear, but everything builds on what's already there.
You'd never want (except in extreme desperation) to use this knowledge to to justify undefined behavior in your code. You use it to make sure you don't have any UB around! Strategies like "I wrote a null pointer check, why isn't it showing up anywhere in the assembly?" can be really helpful to resolve problems.
Re:The Little Bool of Doom (2025)
by direwolf20 on Monday February 09, 2026 @06:16AM
(#46944011)
You're not just learning the specific thing this compiler does on this code, but also the sorts of things compilers can do, in general.
All of that is less true in the microcontroller world where compilers change more slowly and your product will likely be locked to a specific compiler version for its entire lifecycle anyway (and certainly you don't have to worry about end users compiling with a different compiler). In that case maybe getting deeply involved in your compiler's internals makes more sense.