svhawkins / B-Minor-Compiler

COMP 4060 B-Minor Compiler
2 stars 0 forks source link

expr_codegen() should keep track of immediate values #11

Closed svhawkins closed 6 months ago

svhawkins commented 7 months ago

Useful for 'runtime' error checking (such as division by zero, overflow, underflow, etc.). Some expressions are already implemented and tested so it would just be for those adding another line and an additional test check outside of what the generated assembly string is (ie checking the changed struct expr* after generation).

svhawkins commented 6 months ago

12.31.2023::13:46: implemented value tracking for constant values in arithmetic expressions. Has their own standalone tests.