Difference between optimized and non-optimized version

Mitar mmitar at gmail.com
Wed Sep 1 20:27:22 EDT 2010


I am attaching a program which locks (throws an exception <<loop>>)
when compiled like:

ghc --make -threaded -main-is Test.main Test.hs -o test

and doesn't lock when compiled with

ghc --make -threaded -main-is -O2 Test.main Test.hs -o test

This should probably not happen.

I am using 6.12.3 on Linux x86_64.

Best regards

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.hs
Type: application/octet-stream
Size: 3369 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20100901/a92c5b4a/Test.obj

More information about the Glasgow-haskell-users mailing list