3 ms·
If Haskell beats C on that loop, then that is a compiler bug. Did they try repeating these experiments using say icc?
by 33a 14y ago
If Haskell beats C on that loop, then that is a compiler bug. Did they try repeating these experiments using say icc?
- kevingadd 14y agoPersonally, I would say that leaping straight to 'compiler bug' is a little unwarranted. If you really think it's a compiler bug, you should compile the code (they provided it) using the settings they used (I think they provided that too; you can see them in a comment in this thread, actually) and then look at the output assembly and find the bug and file a bug against the compiler.
- lallysingh 14y agoOr Haskell semantics allows more aggressive optimization than C. icc's not actually that much better than gcc in optimization, it's primarily a much better runtime library that gives icc its speed boost.