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.
- Host: GitHub
- URL: https://github.com/tetsuo-cpp/fantac
- Owner: tetsuo-cpp
- Created: 2018-05-30T13:05:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-19T12:26:02.000Z (over 6 years ago)
- Last Synced: 2025-02-05T17:18:09.222Z (10 months ago)
- Language: C++
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).