The src/target/mips
Directory
Namespace target::mips
, delivered for TC-7. Code generation for MIPS
R2000.
File: cpu.* (src/target/mips/)
The description of the MIPS (actually, SPIM/Nolimips) CPU.
File: spim-assembly.* (src/target/mips/)
Our assembly language (syntax, opcodes and layout); it abstracts the generation of MIPS R2000 instructions.
target::mips::SpimAssembly
derives fromtarget::Assembly
.
File: spim-layout.* (src/target/mips/)
How MIPS (and SPIM/Nolimips) fragments are to be displayed. In other words, that’s where the (global) syntax of the target assembly file is selected.
File: spim-codegen.* (src/target/mips/)
A translator from LIR to ASSEM using the MIPS R2000 instruction set defined by
target::mips::SpimAssembly
. This relies ontarget::mips::SpimMatcher
for instruction scheduling.target::mips::Codegen
derives fromtarget::Codegen
.
File: spim-matcher.* (src/target/mips/)
Functor used for pattern-matching based instruction selection, making use of
misc::LambdaVisitor
for nested matching.
File: target.* (src/target/mips/)
The main back end, based on a MIPS CPU and a MIPS code generator.
File: runtime.s & runtime.cc (src/target/mips/)
The Tiger runtime in MIPS assembly language:
runtime.cc
is built fromruntime.s
: do not edit the former. See src/target,tiger-runtime.c
.