Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Benchmark] NBody
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: John Carr <jfc@M...>
Subject: Re: [Caml-list] NBody (one more question)

> > Optimizations in gcc -O1 compared to gcc -O0 include register
> > allocation, dead code elimination, branch straightening, common
> > subexpression elimination, instruction combining, and instruction
> > scheduling.
> 
> Ok, but do you know which one(s) account for the speedup observed in
> this particular case?

There is no way to be sure without careful analysis of generated
code and possibly the state of gcc's internal representation at
intermediate steps.  Most of the optimizations at -O1 can not be
turned on or off independently of the general optimization level.