On 12 August 2010 20:31, Johan Tibell <johan.tib...@gmail.com> wrote: > Yes and dead code elimination should also be able to get rid of much of the > code duplication even before it reaches the linker.
I don't think dead code elimination will help, because presumably you want to generate specialisations on demand. This means that specialisations will only be generated if they have at least one caller. Unless the caller is itself dead, it will be entirely up to the linker to common-up stuff and reduce the code bloat. Cheers, Max _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users