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



3.2.14 The src/assem Directory

Namespace assem, delivered for T7.

This directory contains the implementation of the Assem language: yet another intermediate representation that aims at encoding an assembly language, plus a few need features so that register allocation can be performed afterward. Given in full.

— File: instr.hh (src/assem/)
— File: move.hh (src/assem/)
— File: oper.hh (src/assem/)
— File: label.hh (src/assem/)

Implementation of the basic types of assembly instructions.

— File: fragment.hh (src/assem/)
— File: fragment.cc (src/assem/)

Implementation of assem::Fragment, assem::ProcFrag, and assem::DataFrag. They are comparable to translate::Fragment: aggregate some informations that must remain together, such as a frame::Frame and the instructions (a list of assem::Instr).

— File: visitor.hh (src/assem/)

The root of assembler visitors.

— File: layout.hh (src/assem/)

A pretty printing visitor for assem::Fragment.

— File: libassem.hh (src/assem/)
— File: libassem.cc (src/assem/)

The interface of the module, and its implementation.