<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">Is it possible to execute Objective-C code using LLVM JIT?</div><div class=""><br class=""></div><div class="">The original point for my research is this topic on StackOverflow: </div><div class=""><br class=""></div><div class="">All selectors unrecognised when invoking Objective-C methods using the LLVM ExecutionEngine <a href="http://stackoverflow.com/questions/10375324/all-selectors-unrecognised-when-invoking-objective-c-methods-using-the-llvm-exec" class="">http://stackoverflow.com/questions/10375324/all-selectors-unrecognised-when-invoking-objective-c-methods-using-the-llvm-exec</a></div><div class=""><br class=""></div><div class="">Running that example with lli produces the following output:</div><div class=""><br class=""></div><div class=""><div class="">2016-10-18 21:25:58.332 lli[12970:169282] *** NSForwarding: warning: selector (0x10356a38f) for message 'alloc' does not match selector known to Objective C runtime (0x7fff8e93afb5)-- abort</div><div class="">2016-10-18 21:25:58.334 lli[12970:169282] +[NSAutoreleasePool alloc]: unrecognized selector sent to class 0x7fff7a562130</div><div class="">2016-10-18 21:25:58.338 lli[12970:169282] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSAutoreleasePool alloc]: unrecognized selector sent to class 0x7fff7a562130'</div></div><div class=""><br class=""></div><div class="">See also additional discussion here: <a href="https://twitter.com/sbpankevich/status/783363161537798144" class="">https://twitter.com/sbpankevich/status/783363161537798144</a>.</div><div class=""><br class=""></div><div class="">Thanks.</div><div class=""><br class=""></div><div class="">Stanislav Pankevich</div><div class=""><br class=""></div></body></html>