News for hackers. Stuff that matters.
Re: by chongli on Wednesday October 01, 2025 @04:59AM (#45435695)
Not on all platforms! If you’re writing portable code targeting a lot of embedded platforms then you don’t want to rely on this optimization.
Re: by menaerus on Wednesday October 01, 2025 @05:05AM (#45435728)
It's a platform-agnostic optimization in case of GCC so if your embedded Linux toolchain is based on GCC, and most of them are, it's pretty much the case that it will have this optimization turned on by default.

> This option is enabled by default on most targets. On AVR and MSP430, this option is completely disabled.

Re: by chongli on Wednesday October 01, 2025 @07:37AM (#45436569)
Yes and if you’re targeting AVR, an extremely popular 8 bit micro, then it’ll be turned off.