[jhc] Re: [Haskell] ANNOUNCE: jhc 0.6.0 Haskell Compiler

sylvain sylvain.nahas at googlemail.com
Tue Mar 24 19:12:03 EDT 2009


your post gave me the idea to profile the memory usage of the generated
binary with valgrind.

> Has there been an effort in jhc to reduce the memory footprint of
> generated code? 

In this release of jhc, the problem is handled in a quite radical way.
It seems that no free() is ever emitted, the allocated heap memory is
not released.
Well, this classifies like a bug, I guess.

On the bright side, when I removed all memory deallocation from the C
version, supposing (naively maybe) that it would radicaly reduce the
difference in performance, jhc's still ran twice faster.

Sylvain Nahas

More information about the Haskell mailing list