> > This is known behaviour of gcc.  It doesn't just happen with Haskell
> > programs.
> 
> 
> Could you explain.

Just that gcc -O2 (and higher) isn't guaranteed to produce better code than
gcc -O.  I've seen it reported several times, but I couldn't give you any
concrete examples I'm afraid.  I know the FreeBSD guys compile their kernel
with -O by default for this reason, though.

Cheers,
        Simon

Reply via email to