[Haskell-cafe] Different answers on different machines

Brandon Allbery allbery.b at gmail.com
Sat Jun 1 20:11:43 CEST 2013


On Sat, Jun 1, 2013 at 1:55 PM, <nadine.and.henry at pobox.com> wrote:

> a Dell laptop and a desktop.  I compiled this message with ghc -O2
> --make ex429.lhs and ran it on each machine.  On the Dell I get:
>
> 136342232
> ./ex429  8.66s user 0.02s system 99% cpu 8.695 total
>
> When I run this exact same file on the desktop, I get:
>
> 98792821
> ./ex429  6.50s user 0.03s system 99% cpu 6.537 total
>
> Which happens to be the right answer.  But WHY is the output from the
> Dell different?
>
(hardware description elided)

You're missing one piece of information: do you have the 32-bit or the
64-bit ghc installed on each machine?

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130601/6c36dea6/attachment.htm>


More information about the Haskell-Cafe mailing list