(strange) huge difference

Simon Marlow simonmar@microsoft.com
Tue, 6 Nov 2001 10:58:32 -0000


> I was surprised when the very simple following program, once=20
> 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?
>=20
> fac :: Int -> Int
> fac n =3D product [1..n]
>=20
> main :: IO ()
> main =3D 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