xoreaxeaxeax / movfuscator

The single instruction C compiler
Other
9.29k stars 394 forks source link

LLC not able to compile C++ code into C #34

Open JL2210 opened 5 years ago

JL2210 commented 5 years ago

Extra info: https://stackoverflow.com/questions/31960290/using-the-llvm-linker-to-produce-c-code

$ clang++ -S -emit-llvm -o bytecode.ll tiny.cpp
--- snip ---
$ llc -march=c -o code.c bytecode.ll
llc: error: error: invalid target 'c'.

The C backend for LLVM was removed in 3.1.

aviallon commented 4 years ago

https://github.com/JuliaComputing/llvm-cbe