The src/target/arm Directory

Namespace target::arm, delivered for TC-7. Code generation for ARM. This is not part of the student project, but it is left to satisfy their curiosity. In addition its presence is a sane invitation to respect the constraints of a multi-back-end compiler.

File: cpu.* (src/target/arm/)

Description of the ARMV7 CPU.

File: arm-assembly.* (src/target/arm/)

The ARM assembly language (syntax, opcodes and layout); it abstracts the generation of ARM instructions using the GNU Assembler (Gas) Syntax. target::arm::ArmAssembly derives from target::Assembly.

File: arm-layout.* (src/target/arm/)

How ARM fragments are to be displayed. In other words, that’s where the (global) syntax of the target assembly file is selected.

File: arm-codegen.* (src/target/arm/)

A translator from LIR to ASSEM using the ARM instruction set defined by target::arm::ArmAssembly. This relies on target::arm::ArmMatcher for instruction scheduling. target::arm::Codegen derives from target::Codegen.

File: arm-matcher.* (src/target/arm/)

Functor used for pattern-matching based instruction selection, making use of misc::LambdaVisitor for nested matching.

File: target.* (src/target/arm/)

The ARM back end, based on a ARM CPU and a ARM code generator.

File: runtime.s (src/target/arm/)

The Tiger runtime in ARM assembly language: print etc.