Difference between optimized and non-optimized version

Simon Peyton-Jones simonpj at microsoft.com
Thu Sep 2 05:14:25 EDT 2010


Doesn't look right.  I've made a ticket
	http://hackage.haskell.org/trac/ghc/ticket/4283

Simon

| -----Original Message-----
| From: glasgow-haskell-users-bounces at haskell.org [mailto:glasgow-haskell-
| users-bounces at haskell.org] On Behalf Of Mitar
| Sent: 02 September 2010 01:27
| To: glasgow-haskell-users
| Subject: Difference between optimized and non-optimized version
| 
| Hi!
| 
| 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
| 
| 
| Mitar


More information about the Glasgow-haskell-users mailing list