Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] objc runtime"
2010 Jul 28
0
[LLVMdev] objc runtime
Hi,
sorry, if I post to the unrelated list. I wish to use code::blocks with the
llvm compilers on Windows to use Objective-C 2.0. There are several runtimes
with differences in API, how do clang-llvm, llvm-gcc know the type of
runtime? I wish to use Apple objc4, is it possible?
--
best regards
Ariel
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2018 Feb 14
3
Is it possible to execute Objective-C code via LLVM JIT?
> On 13 Feb 2018, at 17:42, Stanislav Pankevich <s.pankevich at gmail.com> wrote:
>
> On Tue, Feb 13, 2018 at 12:18 PM, David Chisnall
> <David.Chisnall at cl.cam.ac.uk> wrote:
>> On 12 Feb 2018, at 22:31, Stanislav Pankevich via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>>
>>> Specifically I explored the latest objc4-723
>>>
2018 Apr 06
0
Is it possible to execute Objective-C code via LLVM JIT?
Hi again,
I had tried to follow David's suggestion to take a step back and look
into codegen instead of hacking on RuntimeDyld but then I quickly
realized that I don't understand what exactly needs to be done to
fully register Objective-C runtime. I decided to iterate on JIT code
again and somehow I found that I can hook into SectionMemory by
subclassing it and working with its
2018 Feb 15
2
Is it possible to execute Objective-C code via LLVM JIT?
Hi David, Stanislav,
Sorry for the delayed reply.
Short version: There hasn't been any progress on this just yet, as I have
been busy with an overhaul of the underlying ORC APIs.
1) Hack up something in RuntimeDyldMachO to handle the data structures
> currently generated by clang. This is fragile, because the interface
> between the compiler and the runtime is not documented, and is
2018 May 03
2
Is it possible to execute Objective-C code via LLVM JIT?
Hi Stanislav,
Sorry -- I am not much help here. I would like to get ObjC runtime support
for the JIT, but have not had time to look in to it closely. When I last
tested the idea (a couple of years ago now) we used selector registration
and objc_readClassPair to get basic test cases working as you have, but ran
into (possibly similar) failures on non-trivial test cases. I think the
interpretation
2018 Feb 13
0
Is it possible to execute Objective-C code via LLVM JIT?
On Tue, Feb 13, 2018 at 12:18 PM, David Chisnall
<David.Chisnall at cl.cam.ac.uk> wrote:
> On 12 Feb 2018, at 22:31, Stanislav Pankevich via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>
>> Specifically I explored the latest objc4-723
>> from Apple Open Source and it looks like all of the APIs that allow
>> the registration of Objective-C classes,
2012 May 08
0
[LLVMdev] Running Objective-C in the JIT
And also, the hook to load/unload image is installed in objc-os.m using dyld_register_image_state_change_handler() function.
Le 8 mai 2012 à 15:07, Julian Storer a écrit :
> Thanks for the info!
>
> Yes, the problem is certainly that the JITed code isn't registering
> its classes, but even after digging through all the runtime code I
> can't find anything that seems
2012 May 08
3
[LLVMdev] Running Objective-C in the JIT
Thanks for the info!
Yes, the problem is certainly that the JITed code isn't registering
its classes, but even after digging through all the runtime code I
can't find anything that seems suitable for doing this.. The nearest
function I could find was _objc_init_image, but that seems to be for
win32!
I assume that the way it works must be that clang creates some static
data structures
2016 Sep 26
4
objc object file generated for gnustep runtime for ELF target is too big
Dear community,
I'm using gnustep runtime -fobjc-runtime=gnustep with gnustep-libobjc2 (https://github.com/gnustep/libobjc2) and
Cocotron/Chameleon.
For following source file
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
int main(void)
{
NSString *str = [NSString stringWithCString:"TEST"];
2010 Sep 29
0
[LLVMdev] Fwd: bitcode / bytecode
Chris rewrote the original LLVM bytecode into it's present bitcode form. The newer code is much smaller than the previous form. That would be my guess for why he chose to call it bitcode. Of course, he can say for himself. :-)
-bw
On Sep 29, 2010, at 5:15 AM, Ariel Feinerman wrote:
> Anyone,
>
> can you say what was the reason to rename bytecode? I am still interesting in
>
2010 Sep 29
1
[LLVMdev] Fwd: bitcode / bytecode
Anyone,
can you say what was the reason to rename bytecode? I am still interesting
in
2010/9/29 Duncan Sands <baldrick at free.fr>
Hi Ariel,
> As long as I know English the word "bit" is a "small pice", . Why in set
of
> documentation ir is "bytecode", in other set or llvm source is "bitecode"?
> What is the right? Different people call the
2018 Feb 13
2
Is it possible to execute Objective-C code via LLVM JIT?
On 12 Feb 2018, at 22:31, Stanislav Pankevich via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Specifically I explored the latest objc4-723
> from Apple Open Source and it looks like all of the APIs that allow
> the registration of Objective-C classes, selectors, etc. are all very
> private.
The Objective-C runtime provides public APIs for doing all of this. They’re
2018 Feb 12
0
Is it possible to execute Objective-C code via LLVM JIT?
Hi all,
> I actually looked into this recently. It is possible, but takes some non-trivial effort right now: You have to hook into the JIT memory allocator, parse the objective C metadata sections in the object file, then call the objective C runtime to register any newly added classes, protocols and selectors.
> I can't release my code as-is: I built it against a hacked up copy of the
2012 May 07
0
[LLVMdev] Running Objective-C in the JIT
Le 7 mai 2012 à 17:07, Jules a écrit :
> Hello, I've been trying to get some OSX code to execute within the JIT,
> and it's been causing me some major headaches!
>
> I'm attempting to JIT-compile some code which uses external OSX obj-C
> classes (Cocoa, etc), and also contains its own embedded obj-C classes.
>
> My first hurdle in doing this was that when the
2010 Sep 29
4
[LLVMdev] bitcode / bytecode
Hi list,
As long as I know English the word "bit" is a "small pice", . Why in set of
documentation ir is "bytecode", in other set or llvm source is "bitecode"?
What is the right? Different people call the same thing such differently.
--
best regards
Ariel
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2015 Apr 08
2
[LLVMdev] __sync_add_and_fetch in objc block for global variable on ARM
Hello community,
I faced with bug in multithread environment in objective C code which using dispatch_async and block,
__sync_add_and_fetch increments global variable. But in case of many..many threads> 5, after every
__sync_add_and_fetch got damaged
...
int32_t count = 0;
...
int
main(int argc, char *argv[])
{
for (i = 1; i < 32; ++i) {
...
char* name;
2005 Dec 13
2
[LLVMdev] objc frontend
Is there an llvm objc frontend we can play with?
If none then is there being written now?
--
SMS Global Ltd Short Message Service For Seafarers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20051213/c9765598/attachment.html>
2016 Nov 11
2
Is it possible to execute Objective-C code via LLVM JIT?
Hi Kevin
I am just pointing out that is a good place to look at how metadata is parsed and it supports parsing metadata from pre-linked object file which is important to JIT.
My code pretty much replicate most of the functions in MachODump in C++ and hope it can much more reusable than the c parser. The biggest missing part is the resilience to bad metadata due to the fact we currently don't
2005 Dec 15
1
[LLVMdev] objc frontend
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I have recently started using llvm and just decided to use it one of
my projects. I wonder if there is an objc frontend available?
Im suddenly very tempted to put the objc runtime in kernel space!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using the GPG bundle for GNUMail
2018 May 07
0
OpenCL runtimes and LLVM command line options
We have a similar problem in Mesa's radeonsi driver. It would be great
if command-line options could somehow be tied to an llvm::Context, for
example.
There is an even worse problem when *different versions* of LLVM are
loaded into the same process. This is basically guaranteed to lead to
crashes because of symbol clashes. I wonder if C++11 inline namespaces
could be used for proper