CFLAGS for Atom with Additional Optimization

Stumbled upon a blog post on Ivan Voras’ blog which gives a nice advise on CFLAGS that provide additional optimizations for Atom CPU on my Eee PC 901.

Combine Ivan suggestion with Arch Wiki’s suggestion on safe CFLAGS for Atom and we have this:

# CFLAGS For Atom with additional optimization
CFLAGS=”-march=prescott -mfpmath=sse -O3 -pipe -fomit-frame-pointer”
CXXFLAGS=”-march=prescott -mfpmath=sse -O3 -pipe -fomit-frame-pointer”

I’ve tried out the above CFLAGS by using them to compile my custom kernel. I haven’t got time to play with it yet, but from what I’ve seen so far, things do feel faster. Bootchart showed that the system boot up faster by 1 second and Powertop showed that the system as a whole consumes less power.

I’ll have to spent more time with the new kernel to see whether this is a placebo effect or not, but things have been looking promising so far.