[LLVMdev] bytecode -> native code

Tanu Sharma tanusharma_04 at yahoo.com
Tue Mar 22 17:54:27 PST 2005

I am trying to obtain native code from the bytecode by using commands:

% llc hello.bc -o hello.s

% gcc hello.s -o hello.native


This is working for a simple program( a single source file) but when I try to run it on grep utility (grep.bc) , it gives me the following error:


$ llc grep.bc -o grep.s

$ gcc grep.s -o grep.native
/tmp/ccY3oNAA.o(.text+0x2f2f): In function `main':
: undefined reference to `__main'
collect2: ld returned 1 exit status

How should i fix this?


- T

Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050322/5dab3853/attachment.html>

More information about the llvm-dev mailing list