whole program optimization

Stefan O'Rear stefanor at cox.net
Sun Dec 23 11:42:33 EST 2007


On Sun, Dec 23, 2007 at 07:35:20AM -0500, Isaac Dupree wrote:
> GHC optimizes less effectively when parts of a program are in different 
> modules, or are exported from a module.  Therefore, merging all the code 
> into one "module Main (main)" would help.  Unfortunately, Haskell source 
> syntax is ill-suited to this; for example:
...
> So it's more complicated than it seems on the surface, but it could be 
> done; I only wonder how effective it would be on various programs.  I 
> assume GHC doesn't currently implement any optimizations that can _only_ be 
> whole-program, so it would still not be quite like Jhc, though this basic 
> support might allow some such optimizations to be implemented.

It's been done.  http://www.cs.utah.edu/~hal/HAllInOne/index.html

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20071223/d2443768/attachment.bin


More information about the Glasgow-haskell-users mailing list