To compile or not to compile

As always, I’m late to the party. But I’m still glad someone has come along and done a comprehensive benchmark of Gentoo’s optimizations, including -Os, -O2 and -O3 flags for gcc. And it’s probably good to throw Ubuntu into that test too, for another level of comparison.

There were very few surprises there for me — a lot of what the author reports and concludes is similar to my own experiences. For my older systems I usually build Crux with the -O2 flag, although while I was using machines with a mere 16Mb of memory, I relied on -Os, and I still try that from time to time. My logic is, if -Os builds smaller binaries, they should load faster. But maybe I’m overthinking it. :roll:

Where you sit on the issue depends a lot on what you use your computer for, and how much performance you require and at what cost. Like so many things with Linux, you have the freedom to sculpt your computer to your liking — or not at all. If you’ve never built a system from source code, it’s worth trying once or twice. If it appeals to you, you won’t mind the time spent doing it. On the other hand, if it doesn’t, you can rely on binary distributions, and there’s no shame in that.

As a final note it’s worth pursuing if you’re working with underpowered or out-of-date hardware. Speaking from experience, a customized system might be what determines whether or not the machine is usable at all. ;)

About these ads

0 Responses to “To compile or not to compile”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,963,834 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: