This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about compile options
- To: gcc at gcc dot gnu dot org
- Subject: Question about compile options
- From: Luke Mauldin <lukeskyfly at txk dot net>
- Date: Fri, 15 Jun 2001 12:19:50 -0500
- Reply-To: lukeskyfly at txk dot net
Hello I have a 1.33 Ghz Athlon and I have a question about what are the best
compile options to use with Gcc-3.0? I know that I should use -O2 because
sometimes -O3 produces slower code because of the inlining. What I do not
know though is what -malign-jumps and -malign-functions and -m-align-loops
and -mpreferred-stack-boundary should be set to for best performance? I do
not care if the code size is a little bit bigger because I have 256 MB of RAM
but I do want to know what I should set those options to for max performance.
Can anyone help me? Or at least should me some benchmarks I could
compile/run to help me figure out what to set those options to?
Luke