FantaC is an LLVM frontend for the C programming language.
Unusable.
- CMake.
- LLVM 5.
- fmt.
Bring in Git submodules.
git submodule init
git submodule update
Use CMake to generate a platform specific build script and then invoke that.
cmake .
make
You can generate LLVM IR for a C source file like so.
./fantac [FILE]
See compile.sh for an example of how you can use this in conjunction with llc to compile to an executable.