Skip to content

Comment on The most useful GCC options and extensions

Comments

One piece of advice I've heard is to benchmark your app under -Os compared to -O2 or higher.

The idea is that in these days, cache misses are king, so smaller code means fewer misses.

Of course, you need a real-world load, test on correct CPU architecture for your problem etc.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.