Noeud « Next »: , Noeud « Previous »: src/codegen, Noeud « Up »: Project Layout



3.2.17 The src/codegen/mips Directory

Namespace codegen::mips, delivered for T7. Code generation for MIPS R2000.

— File: runtime.s (src/codegen/mips/)
— File: runtime.cc (src/codegen/mips/)

The Tiger runtime in MIPS assembly language: print etc. The C++ file runtime.cc is built from runtime.s: do not edit the former. Voir src/codegen, tiger-runtime.

— File: spim-assembly.hh (src/codegen/mips/)
— File: spim-assembly.cc (src/codegen/mips/)

Our assembly language (syntax, opcodes and layout); it abstracts the generation of MIPS 2000 instructions. codegen::mips::SpimAssembly derives from codegen::Assembly.

— File: codegen.hh (src/codegen/mips/)
— File: codegen.cc (src/codegen/mips/)

Our real and only back end: a translator from LIR to ASSEM using the MIPS 2000 instruction set defined by codegen::mips::SpimAssembly. It is implemented as a maximal munch. codegen::mips::Codegen derives from codegen::Codegen.

— File: spim-layout.hh (src/codegen/mips/)
— File: spim-layout.cc (src/codegen/mips/)

How MIPS (and SPIM/Mipsy) fragments are to be displayed. In other words, that's where the (global) syntax of the target assembly file is selected.