GHC vs. GCC on raw vector addition
Bulat Ziganshin
bulatz at HotPOP.com
Wed Jan 18 10:18:29 EST 2006
Hello Malcolm,
Wednesday, January 18, 2006, 4:22:23 PM, you wrote:
>> I'm running GHC and GCC head-to-head on the task of adding a bunch of
>> long IOUArray-Vectors really fast. My machine is a Linux-ppc PowerBook
>> and gets a runtime for the GHC-compiled binary that's about 10x as long
>> as for GCC.
MW> Is it possible that gcc is making use of the ppc AltiVec instructions,
MW> and ghc is not?
:) even C version performs only 20 millions of additions in one second
because this program is most limited by memory throughput - it access
to 24 memory bytes per each addition. GHC just can't produce simple
loops even for "imperative" code. JHC can be much better in that area,
i strongly recommend Sven to try it
--
Best regards,
Bulat mailto:bulatz at HotPOP.com
More information about the Glasgow-haskell-users
mailing list