TC-X Code to Write¶
Tip
Information on IA-32 assembly instructions may be found in the Intel® 64 and IA-32 Architectures Software Developer Manuals, or in this much shorter IA32 Instruction List form.
The documentation of the GNU Assembler (GAS) is also a recommended reading.
- Codegen
src/target/ia32/gas-matcher.ccis the functor used for instruction selection pattern-matching.- src/target/ia32/gas-assembly.cc
GasAssembly::cjump_buildtranslates conditional branch instructions (branch if equal, if lower than, etc.) into IA-32 assembly.- Runtime
You have to complete the implementation of the runtime in
src/target/ia32/runtime-gnu-linux.s:- strcmp
- streq
- src/target/ia32/epilogue.cc
Completing the
Codegen::rewrite_programroutine will be needed during register allocation only, see TC-9, Register Allocation.