Skip to content

xiongxoy/compilers

Repository files navigation

#Introduction

This a C compiler written purely in C, which converts C source code to AT&T syntax assembly.

A large amount of work is devoted to the automatic generation of LR(1) automaton, which is often done by tools like Yacc or the newer Bison. You can treat this project as a minimum and conscious demonstration of the tricks behind tools like Bison.

The semantics part used a straight-forward abstract syntax tree (AST) approach, memory efficiency is traded off for consciousness, but this ANSI-C program is still fast.

About

to compile c with c, :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published