|Version 10 (modified by dterei, 4 years ago) (diff)|
GHC Commentary: Backends
After Cmm has been generated, we have a choice of targets to compile to:
These backends are completely interchangeable. Our preferred route is the native code generator. The C code generator is used for portable, non-optimised, or unregisterised compilation (Note that the LLVM backend also supports building GHC in unregisterised mode as well as registerised mode so it is usually the preferred route for porting GHC).