Does GHC supports/has a command for counting total beta reductions taken by a
program?
Thanks.
--
View this message in context:
http://www.nabble.com/Counting-beta-reductions-for-a-Haskell-program...-tp20623025p20623025.html
Sent from the Haskell - Haskell-Cafe mailing list archive at
This doesn't make a whole lot of sense. One of the reasons
GHC-compiled code is so fast is that it turns into straight-line code
whenever possible, via inlining, primitive optimizations, etc.
I suppose there could be an option for the STG machine[1] to increment
a counter on every Enter, which
Thanks.
I heard that a Gofer compiler (a Haskell dialect) supports counting the Beta
reductions.
Hence I thought GHC/Hugs would have a similar facility.
Ryan Ingram wrote:
This doesn't make a whole lot of sense. One of the reasons
GHC-compiled code is so fast is that it turns into
Hugs has, afaik, a output reduction count option somewhere. At
least it had one the last time I used it.
- Adrian
Am 22.11.2008 um 06:22 schrieb kk08:
Thanks.
I heard that a Gofer compiler (a Haskell dialect) supports counting
the Beta
reductions.
Hence I thought GHC/Hugs would have a
Yes Hugs has a option +s but it counts some sort of reductions not exactly
the beta reductions.
Thanks.
-Damodar
2008/11/22 Adrian Neumann [EMAIL PROTECTED]
Hugs has, afaik, a output reduction count option somewhere. At least it
had one the last time I used it.
- Adrian
Am 22.11.2008 um