Module src.backend

Expand source code
import os
import sys

sys.path.insert(0, os.path.dirname(__file__))

Sub-modules

src.backend.ASMNode

Declares the ASMNode class, which represents one line of an IR

src.backend.allocator

Declares the Allocator, RegisterData, and RegisterDirectory classes. Does register allocation on an ASM file that uses variable names

src.backend.backend

Serves as the main interface to the backend of the compiler. Performs instruction generation and register allocation.

src.backend.stack

This module controls the virtual stack necessary for keeping track of base pointer, stack pointer, and anything else that is pushed/popped onto the …