[LLVMdev] problem with lli (llvm 1.3)

Shukang Zhou zhou at cs.virginia.edu
Thu Oct 7 15:46:18 PDT 2004


Thanks Misha. I tried the "gcc -dM -E /tmp/file.c | grep __sparcv9" but
there was no output. Maybe this is the probelm, I do have

CXX = g++ -mcpu=v9
CC := gcc -mcpu=v9

in the Makefile.config. Do I need to add -m64 as well? Thanks.

Shukang

On Thu, 7 Oct 2004, Misha Brukman wrote:

> Is your compiler configured to define __sparcv9 when it compiles?
> The following should tell you:
>
> % touch /tmp/file.c
> % gcc -dM -E /tmp/file.c | grep __sparcv9
>
> If the output is similar to the below, you're fine:
> #define __sparcv9 1
>
> If the above command gives no output, then you need to specify -mcpu=v9
> or reconfigure/recompile GCC to default to outputting V9 code.
>




More information about the llvm-dev mailing list