This is a simple C compiler implemented using the following tools:
- clang
- llvm
- flex
- yacc
The code is publicly available on Github here.
Get the code by:
git clone https://github.com/aerocyber/cd-projectThis project is VERY minimal to the point that no programs other than in the test/ directory is guaranteed to compile. This compiler is VERY minimal and supposed to be treated as a proof of concept. The output is the IR code generated by LLVM.
The following dependencies are required for building the project
- clang
- LLVM 19
- flex
- yacc
If building for the first time,
- Get the code. See #Get the code
- Run
build.sh:
./build.sh- Run the test file:
./test.sh- Cleanup:
./clean.shSee LICENSE file