[Haskell-cafe] GHC vs GCC

Grzegorz C pitekus at gmail.com
Sat Mar 27 03:46:54 EDT 2010


Hi,


Rafael Almeida wrote:
> 
> On Fri, Mar 26, 2010 at 6:49 PM, Jason Dagit <dagit at codersbase.com> wrote:
> Using bang patterns didn't help almost anything here. Using rem
> instead of mod made the time go from 45s to 40s. Now, using -fvia-C
> really helped (when I used rem but not using mod). It went down to
> 10s.
> 
> What's going on here? Doesn't ghc do tail recursion optimization?
> 
I see similar surprising results here on  x86_64 Linux, GHC 6.10.4 (version
with bangs):
-fasm
real	0m25.239s
user	0m25.218s
sys	0m0.012s

-via-c
real	0m8.699s
user	0m8.641s
sys	0m0.020s

Best,
--
Grzegorz
-- 
View this message in context: http://old.nabble.com/GHC-vs-GCC-tp28045806p28050734.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list