jameslahm / c2llvm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C To LLVM

Setup

bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
virtualenv venv
pip install -r requirements.txt

Compile And Run

# python parse.py source.c out.ll
python parse.py test.c out.ll

lli out.ll

Tests

Palindrome

python parse.py tests/palindrome.c out.ll

lli out.ll

Sort

python parse.py tests/sort.c out.ll

lli out.ll

Kmp

python parse.py tests/kmp.c out.ll

lli out.ll

Calc

python parse.py tests/calc.c out.ll

lli out.ll

Dfs

python parse.py tests/dfs.c out.ll

lli out.ll

About


Languages

Language:Python 92.0%Language:CSS 3.3%Language:C 2.9%Language:ANTLR 1.3%Language:JavaScript 0.5%Language:Makefile 0.1%