Securing-Optimizing-RH-Linux-1_2_65
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
65
·
The -fomit-frame-pointer
The -fomit-frame-pointer optimization option, one of the most interesting will allow to not
keep the frame pointer in a register for functions that don't need one. This avoids the
instructions to save, set up and restores frame pointers; it also makes an extra register
available in many functions and makes debugging impossible on most machines.
NOTE: All future optimization that we will describe in this book refer by default for a Pentium II/III
CPU family. So, you must, if require adjust the compilation flag for your specific CPU processor
type in the /etc/profile file and during your compilation time.
Benchmark Results
Summaries by Architecture
Depending of your processor architecture and the version of your compiler (GCC/EGCS),
optimization options may vary. The charts bellow will help you to choose the best compilation
flags for your compiler/CPU architecture.
Compiler version installed on your RedHat Linux 6.1 is egcs 2.91.66. But be sure to check it even
so before choosing your compiler optimization options.
·
To verify the compiler version installed on your system, use the command:
[root@deep /]# egcs --version
egcs -2.91.66
NOTE: All benchmark results and future result can be retrieve from the GCC home page at the
following address: http://egcs.cygnus.com/