
27 Jan
2006
27 Jan
'06
2:14 a.m.
On 1/26/06, Donald Bruce Stewart
Ah, i just do: ghc A.hs -O2 -ddump-simpl | less and then read the Core, keeping an eye on the functions I'm interested in, and checking they're compiling to the kind of loops I'd write by hand. This is particularly useful for the kinds of tight numeric loops used in some of the shootout entries.
Cheers, Don
In that case could you describe the kind of loops you'd write by hand? Seriously. And perhaps typical problems/fixes when the compiler doesn't produce what you want. Thanks, Joel