[LLVMdev] problems with llc and hello world .

Ramana Radhakrishnan ramana.radhakrishnan at celunite.com
Sun Jan 21 00:36:22 PST 2007


Hi ,

I've been giving the ARM port of LLVM a spin today and ran into this .


[ramana at venglathur builddir]$ cat hello.c && llvm-gcc hello.c -c
-emit-llvm -O3 -o - | llc -march=arm
#include <stdio.h>

int main(void)
{

printf ("hello world\n");
return 0;
}

llc: bytecode didn't read correctly.

llvm and the tools is today's CVS head while

llvm-gcc is llvm-gcc-4
gcc version 4.0.1 LLVM (Apple Computer, Inc. build 5421)

I get the same issue with -march=x86 so I am guessing its something wrong
I am doing.

Is there something I am missing  ? Thanks in advance for the help.

cheers
Ramana







More information about the llvm-dev mailing list