This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc -O1 performs better than gcc -O2


On Sun, Feb 14, 2010 at 08:06:20PM +0100, Joakim Tjernlund wrote:
> the warmup isn't really needed after I added memset and inline or not should
> not matter that much are only used once so I think my
> conclusion still stands: gcc 4.3.4 is slower with -O2 than -O1

You mean this particular GCC version on this particular benchmark.
You'd need to benchmark orders of magnitude more code to be able to
talk about -O1 vs. -O2 in general.  ;)

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]