
6 Nov
2001
6 Nov
'01
5:58 a.m.
I was surprised when the very simple following program, once compiled with GHC-4.08.1, generated a 28.8 Kb file, but when compiled with GHC-5.02 generated a 436 Kb file. Is this the GHC behavior to be expected?
fac :: Int -> Int fac n = product [1..n]
main :: IO () main = do putStrLn "HELLO WORLD" putStrLn (show (fac 5))
GHC 4.08.1 used shared libraries, which caused no end of problems so we reverted to static linking for 5.02. Cheers, Simon
8596
Age (days ago)
8596
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow