An open API service indexing awesome lists of open source software.

https://github.com/tetsuo-cpp/fantac

An LLVM frontend for the C programming language.
https://github.com/tetsuo-cpp/fantac

Last synced: 8 months ago
JSON representation

An LLVM frontend for the C programming language.

Awesome Lists containing this project

README

          

# FantaC
FantaC is an LLVM frontend for the C programming language.
## Progress
Unusable.
## Dependencies
* CMake.
* LLVM 5.
* fmt.
## Build
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
```
## Usage
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.
## References
* [9cc by Rui Ueyama](https://github.com/rui314/9cc).
* [QCC by uint256_t](https://github.com/maekawatoshiki/qcc).