News for hackers. Stuff that matters.
Re:GCC x86 Performance Hints (2012) by bigdict on Friday August 21, 2020 @11:36AM (#24235740)
I use it too for embedded. Functions get inlined, fewer registers get saved unnecessarily in functions.

I also use “-fdata-sections -ffunction-sections” with “-Wl,--gc-sections” to prune unused sections.

There is some evidence this can actually increase your code size sometimes: https://stackoverflow.com/a/29951897.

There are no comments on this comment yet.