[llvm-dev] Is it possible to execute Objective-C code via LLVM JIT?
Stanislav Pankevich via llvm-dev
llvm-dev at lists.llvm.org
Tue Oct 18 13:33:50 PDT 2016
Hello,
Is it possible to execute Objective-C code using LLVM JIT?
The original point for my research is this topic on StackOverflow:
All selectors unrecognised when invoking Objective-C methods using the LLVM ExecutionEngine http://stackoverflow.com/questions/10375324/all-selectors-unrecognised-when-invoking-objective-c-methods-using-the-llvm-exec <http://stackoverflow.com/questions/10375324/all-selectors-unrecognised-when-invoking-objective-c-methods-using-the-llvm-exec>
Running that example with lli produces the following output:
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
2016-10-18 21:25:58.334 lli[12970:169282] +[NSAutoreleasePool alloc]: unrecognized selector sent to class 0x7fff7a562130
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'
See also additional discussion here: https://twitter.com/sbpankevich/status/783363161537798144 <https://twitter.com/sbpankevich/status/783363161537798144>.
Thanks.
Stanislav Pankevich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161018/e72a7384/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161018/e72a7384/attachment.sig>
More information about the llvm-dev
mailing list