x
Loading
 Loading
Join 10,000+ Fans Join 5,000+ Followers Join 1,000+ Members Join 10,000+ Subscribers Subscribe to Daily Updates
Follow Linux Magazine
Hello, Guest | Login | Register

Gentoo Optimizations Benchmarked

Gentoo is a source based distribution which lets the user decide how to optimize their system in many ways. Linux Magazine benchmarks three of the most common GCC optimizations; -Os, -O2 and -O3, and throws in Ubuntu for good measure.

As previously discussed on Linux Magazine, Gentoo is a source based distribution which lets the end user decide what their system will be. All binary distributions make these choices for you, but building from source, Gentoo users can decide for themselves. They are able to choose what CPU their binaries will be built for, as well as GCC optimizations. Taken directly from the GNU GCC Manual:

“Without any optimization option, the compiler’s goal is to reduce the cost of compilation and to make debugging produce the expected results… Turning on optimization flags makes the compiler attempt to improve the performance and/or code size at the expense of compilation time and possibly the ability to debug the program. The compiler performs optimization based on the knowledge it has of the program. Compiling multiple files at once to a single output file mode allows the compiler to use information gained…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. Dell Studio 1747 Laptop: One Fatal Flaw Away from Linux Perfection
  2. Debian at 17: As Important as Ever
  3. Should OpenSolaris Die?
  4. The Year Of The Linux... Everything Else
  5. Improving The Linux Desktop? Why, It's Elementary