Difference between revisions of "Compiler"

From NaplesPU Documentation
Jump to: navigation, search
Line 2: Line 2:
  
 
Adding a new target architecture, i.e. nu+, to llvm requires four steps:  
 
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|Backend]]
 
* modify the Clang frontend
 
* modify the Clang frontend
 
* register and add the new backend to llvm
 
* register and add the new backend to llvm

Revision as of 18:00, 12 September 2017

This is the main nu+ compiler documentation page

Adding a new target architecture, i.e. nu+, to llvm requires four steps:

  • Backend
  • 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..

How to add a new backend to llvm