
1 Jul
2003
1 Jul
'03
noon
| Are there any concoctions of flags/pragmas/techniques to coax GHC into | unrolling a function (or rather an IO computation in this case) a couple | of iterations. There was another (admittedly also noddy) program that I | could get to near gcc, but only by unrolling by hand (though Ian's TH | stuff likely could have done it). GHC generally doesn't unroll recursions. The inliner runs repeatedly, so it's hard for it to know how much it unrolled "last time". (There's a paper "Secrets of the GHC inliner" on my publications page.) Simon
7994
Age (days ago)
7994
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Peyton-Jones