Difference between revisions of "Compiler"
From NaplesPU Documentation
Line 1: | Line 1: | ||
<strong>This is the main nu+ compiler documentation page</strong> | <strong>This is the main nu+ compiler documentation page</strong> | ||
− | Adding a new target architecture, i.e. nu+, to llvm requires | + | Adding a new target architecture, i.e. nu+, to llvm requires four steps: |
* write all backend files and place them into the lib/Target/NuPlus folder | * write all backend files and place them into the lib/Target/NuPlus folder | ||
* modify the Clang frontend | * modify the Clang frontend | ||
* register and add the new backend to llvm | * register and add the new backend to llvm | ||
− | + | * modify and/or add all the external tools that are used by llvm, i.e. linker, disassembler, etc.. | |
− | |||
[[How to add a new backend to llvm|How to add a new backend to llvm]] | [[How to add a new backend to llvm|How to add a new backend to llvm]] |
Revision as of 16:09, 12 September 2017
This is the main nu+ compiler documentation page
Adding a new target architecture, i.e. nu+, to llvm requires four steps:
- write all backend files and place them into the lib/Target/NuPlus folder
- modify the Clang frontend
- register and add the new backend to llvm
- modify and/or add all the external tools that are used by llvm, i.e. linker, disassembler, etc..