[Haskell-cafe] Counting beta reductions for a Haskell program...
ryani.spam at gmail.com
Sat Nov 22 00:06:55 EST 2008
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 to increment
a counter on every "Enter", which loosely corresponds to a beta
reduction, but the STG machine is only an island in the sea of
compiled code GHC creates.
On Fri, Nov 21, 2008 at 8:46 PM, kk08 <kdamodar2000 at gmail.com> wrote:
> Does GHC supports/has a command for counting total beta reductions taken by a
> 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 Nabble.com.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe