Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 369 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 369 Bytes

Mini-C-Compiler

A compiler for a subset of the C programming language.
Major differences include:

  • No pointers.
  • No casts.
  • No structs or unions.

Notes about generated quadruples

  • Assumes the presence of five registers - retval, retadr, temp1, temp2, and temp3.

Building and Running

    make
    ./bin/compiler.exe examples/fibonacci.c