<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi Eric,<br><br>You're forcing the interpreter.  That is less compatible than the JIT since fewer people are interested in maintaining the interpreter.  I'm not sure how well it interprets since there has been some work done on it.  Try leaving that option out.  Also, make sure that Clang has all of the proper entries set for emitting LLVM bitcode rather than object code.<br><br>I hope this helps,<br><br>--Sam<br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;">From:</span></b> Eric Brunstad
 <ericbrunstad@mac.com><br><b><span style="font-weight: bold;">To:</span></b> llvmdev@cs.uiuc.edu<br><b><span style="font-weight: bold;">Sent:</span></b> Sun, October 18, 2009 8:32:04 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [LLVMdev] Objective-C code in lli<br></font><br>
<meta http-equiv="x-dns-prefetch-control" content="off">Hi,<div><br></div><div>Is it possible to run Objective-C code in lli?  lli does not seem to want to load Foundation.framework.</div><div><br></div><div>Please see below.</div><div><br></div><div>Thanks,</div><div><br></div><div>Eric Brunstad</div><div><br></div><div><div style="margin: 0px; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; color: rgb(209, 38, 34);"><span style="color: rgb(120, 72, 45);">#import </span><Foundation/Foundation.h></div><div style="margin: 0px; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; min-height: 13px;"><br></div><div style="margin: 0px; font-family: Menlo; font-style: normal;
 font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><span style="color: rgb(188, 36, 160);">int</span> main(<span style="color: rgb(188, 36, 160);">int</span> argc, <span style="color: rgb(188, 36, 160);">char</span> *argv[])</div><div style="margin: 0px; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">{</div><div style="margin: 0px; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><span class="Apple-tab-span" style="white-space: pre;">  </span>NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];</div><div style="margin: 0px; font-family: Menlo; font-style: normal;
 font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><span class="Apple-tab-span" style="white-space: pre;">        </span>NSLog(<span style="color: rgb(209, 38, 34);">@"test!"</span>);</div><div style="margin: 0px; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[pool drain];</div><div style="margin: 0px; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><span class="Apple-tab-span" style="white-space: pre;">  </span><span style="color: rgb(188, 36, 160);">return</span> EXIT_SUCCESS;</div><div style="margin: 0px; font-family:
 Menlo; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">}</div></div><div><br></div><div>cmu-351714:llvm-2.5 ericbrunstad$ /Users/ericbrunstad/Downloads/llvm-2.5/Release/bin/lli -force-interpreter=true -stats  /Users/ericbrunstad/Desktop/test/test.o -load=/System/Library/Frameworks/Foundation.framework/Foundation<br></div><div><br></div><div>Could not resolve external global address: __CFConstantStringClassReference<br>0   lli               0x0000000100687556 (anonymous namespace)::SignalHandler(int) + 470<br>1   libSystem.B.dylib 0x00007fff83ee10aa _sigtramp + 26<br>2   libSystem.B.dylib 0x0000000100a0b4ba _sigtramp + 2092082218<br>3   lli               0x00000001001e8374 llvm::ExecutionEngine::emitGlobals() + 6164<br>4   lli  
             0x00000001001dbd69 llvm::Interpreter::Interpreter(llvm::ModuleProvider*) + 185<br>5   lli               0x00000001001dbdd8 llvm::Interpreter::create(llvm::ModuleProvider*, std::string*, bool) + 56<br>6   lli               0x0000000100010803 main + 243<br>7   lli               0x00000001000106e8 start + 52<br><br></div><meta http-equiv="x-dns-prefetch-control" content="on"></div></div></blockquote></div><br>

      </body></html>