[LLVMdev] Problem running program with LLVM JIT

Karhu, Abhinav R akarhu3 at gatech.edu
Mon Sep 29 11:57:53 PDT 2008


Hey all,
I compiled the code using both the -c and -S options. I can get the human readable IR but I still cannot run it using lli.

The output of the IR looks like this. Can some of the information tell me about why the program is not running.

; ModuleID = 'Hel.c'
target datalayout = "e-p:32:32"
target endian = little
target pointersize = 32
target triple = "i686-pc-linux-gnu"
%str = internal constant [10 x sbyte] c"Hey there\00"           ; <[10 x sbyte]*> [#uses=1]

implementation   ; Functions:

int %main() {
entry:
        %retval = alloca int, align 4           ; <int*> [#uses=2]
        %tmp = alloca int, align 4              ; <int*> [#uses=2]

These are the lines of code I guess which will have all the information that is causing the error.

Some enlightenment on this please.

-- 
Abhinav Karhu
MS Computer Science
Georgia Institute of Technology



More information about the llvm-dev mailing list