Expected performance

Martin Hess martinhess at mac.com
Wed Nov 7 08:54:19 PST 2007


I had -O3 already but I added the other 2 optimizations and didn't see any time difference.

Michel Fortin Wrote:

> On 2007-11-07 05:06:55 -0500, Aarti_pl <aarti at interia.pl> said:
> 
> > Did you turn on optimizations when compiling D code?
> > 
> > -inline        do function inlining
> > -O             optimize
> > -release       compile release version
> 
> He's using GDC, so that would rather be:
> 
> -finline-functions
> one of -O3 (fastest) or -Os (fastest, smaller)
> -frelease
> 
> You could also optimize intruction scheduling for a specific processor; 
> for me that would be:
> 
> -mtune=G4
> 
> -- 
> Michel Fortin
> michel.fortin at michelf.com
> http://michelf.com/
> 




More information about the Digitalmars-d mailing list