Hi all;<div><br></div><div>Problem: Running a bitcode file produced by llvm-gcc (gcc 4.6.3 + dragonegg 3.1 + llvm 3.1) with lli (Ubuntu 12.04)</div><div><br></div><div><i>llvm-gcc:</i></div><div><br></div><div><div>llvm-gcc -c hello.c -emit-llvm -o hello.bc</div>
<div>lli hello.bc</div><div><br></div><div>output: </div><div>lli: hello.bc:1:1: error: expected top-level entity</div><div><div>ELF@4(</div></div><div><br></div><div><i>clang:</i></div><div><br></div><div><div>clang -c hello.c -emit-llvm -o hello.bc</div>
<div>lli hello.bc</div></div><div><br></div><div>output:</div><div>hello world</div><div><br></div><div>hello.c:</div><div><div>#include <stdio.h></div><div>int main() {</div><div>  printf("hello world\n");</div>
<div>  return 0;</div><div>}</div></div><div><br></div><div>Any suggestions on how to do it in llvm-gcc?</div>--  <br>Arnamoy Bhattacharyya<br>Athabasca Hall 143<br>Department of Computing Science - University of Alberta<br>
Edmonton, Alberta, Canada, T6G 2E8<br>587-710-7073<br>
</div>