Re:When Compiler Optimizations Hurt Performance
by superblas on Tuesday October 21, 2025 @09:24AM
(#45655483)
Agreed. As an embedded software engineer new to the field I’ve seen senior engineers with over ten years of experience complain when division by a compile time constant (even by a power of two) is used in code instead of multiplication or bit shifting on our cortex-m7 mcu running at 600MHz
Only because it used to be true in the past, someone told it was so during a coffee break, or it appeared in some computer related article.