[LLVMdev] What's Going Wrong with GCC 4.6.3 + dragonegg 3.1
Arnamoy Bhattacharyya
arnamoy at ualberta.ca
Sat Jun 16 11:19:14 PDT 2012
Hi all;
Problem: Running a bitcode file produced by llvm-gcc (gcc 4.6.3 + dragonegg
3.1 + llvm 3.1) with lli (Ubuntu 12.04)
*llvm-gcc:*
llvm-gcc -c hello.c -emit-llvm -o hello.bc
lli hello.bc
output:
lli: hello.bc:1:1: error: expected top-level entity
ELF@4(
*clang:*
clang -c hello.c -emit-llvm -o hello.bc
lli hello.bc
output:
hello world
hello.c:
#include <stdio.h>
int main() {
printf("hello world\n");
return 0;
}
Any suggestions on how to do it in llvm-gcc?
--
Arnamoy Bhattacharyya
Athabasca Hall 143
Department of Computing Science - University of Alberta
Edmonton, Alberta, Canada, T6G 2E8
587-710-7073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120616/75684e09/attachment.html>
More information about the llvm-dev
mailing list