<span class="gmail_quote">On 1/26/06, <b class="gmail_sendername">Donald Bruce Stewart</b> <<a href="mailto:firstname.lastname@example.org">email@example.com</a>> wrote:</span> <br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ah, i just do: ghc A.hs -O2 -ddump-simpl | less<br>and then read the Core, keeping an eye on the functions I'm interested<br>in, and checking they're compiling to the kind of loops I'd write by<br>hand. This is particularly useful for the kinds of tight numeric loops
<br>used in some of the shootout entries.<br><br>Cheers,<br> Don</blockquote></div><br><br>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.