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.cc is the functor used for instruction selection pattern-matching.

src/target/ia32/gas-assembly.cc

GasAssembly::cjump_build translates 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/gas-codegen.cc

Completing the Codegen::rewrite_program routine will be needed during register allocation only, see TC-9, Register Allocation.