[[project @ 2004-06-17 13:35:33 by simonmar] simonmar**20040617133533 Mention the splitter in the section on porting. ] { hunk ./docs/building/building.sgml 10 -November 2001 hunk ./docs/building/building.sgml 3996 - The mangler is an evil Perl-script that rearranges the - assembly code output from gcc to do two main things: + The mangler is an evil Perl-script + (ghc/driver/mangler/ghc-asm.lprl) that + rearranges the assembly code output from gcc to do two main + things: hunk ./docs/building/building.sgml 4028 + + + The splitter + + The splitter is another evil Perl script + (ghc/driver/split/ghc-split.lprl). It + cooperates with the mangler to support object splitting. + Object splitting is what happens when the + option is passed to GHC: the + object file is split into many smaller objects. This feature + is used when building libraries, so that a program statically + linked against the library will pull in less of the + library. + + The splitter has some platform-specific stuff; take a + look and tweak it for your system. + }