| 304 | | == The mangler == |
| 305 | | |
| 306 | | The mangler is an evil Perl-script |
| 307 | | ([[GhcFile(driver/mangler/ghc-asm.lprl)]]) that rearranges the assembly |
| 308 | | code output from gcc. To understand what the manger does and how it works, see |
| 309 | | [wiki:Commentary/EvilMangler]. |
| 310 | | |
| 311 | | The mangler is abstracted to a certain extent over some |
| 312 | | architecture-specific things such as the particular assembler |
| 313 | | directives used to herald symbols. Take a look at the definitions for |
| 314 | | other architectures and use these as a starting point for porting it to |
| 315 | | your platform. |
| 316 | | |