/Mini-C-Compiler

A compiler for a subset of the C programming language.

Primary LanguageCGNU General Public License v3.0GPL-3.0

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