[Chicken-hackers] Why isn't OPTIMIZE_FOR_SPEED the default?

2014-11-02 Thread Peter Bex
Hi all, After hitting my head against the wall why the numbers egg's division was so much slower than Gauche while it is now using the same algorithm, I noticed that some_pointer[x/2] was much slower than some_pointer[x>>1], so the C compiler wasn't optimising this particular operation away, which

Re: [Chicken-hackers] Why isn't OPTIMIZE_FOR_SPEED the default?

2014-11-02 Thread John Cowan
Peter Bex scripsit: > Am I going completely mad and am I missing something obvious? Is there > a good reason why optimizing for speed isn't the default? It's no more than a guess, but historically -O2 and -O3 tickled bugs that didn't appear at -O1. Probably someone (Felix?) fell over such a b

Re: [Chicken-hackers] Why isn't OPTIMIZE_FOR_SPEED the default?

2014-11-02 Thread Felix Winkelmann
From: John Cowan Subject: Re: [Chicken-hackers] Why isn't OPTIMIZE_FOR_SPEED the default? Date: Sun, 2 Nov 2014 17:38:39 -0500 > Peter Bex scripsit: > >> Am I going completely mad and am I missing something obvious? Is there >> a good reason why optimizing for speed isn't the default? > > It