search for: runtimedyldmemormanager

Displaying 4 results from an estimated 4 matches for "runtimedyldmemormanager".

2015 Aug 13
2
Linking existing functions from JITed code
Hi Andy, I haven't tested this on Linux, but on MacOS the RuntimeDyldMemorManager::getSymbolAddressInProcess method should find symbol addresses in the host program, including symbols from static archives linked into the program. However, one gotcha is that the symbol has to be reachable from main, otherwise the linker may strip it from the final executable. Do you have a test-...
2015 Aug 20
2
Linking existing functions from JITed code
...doscope examples is very useful, as for example > one wants a set of private symbols made available to JITed code. > > > > On Aug 13, 2015, at 7:41 PM, Lang Hames <lhames at gmail.com> wrote: > > Hi Andy, > > I haven't tested this on Linux, but on MacOS the > RuntimeDyldMemorManager::getSymbolAddressInProcess method should find > symbol addresses in the host program, including symbols from static > archives linked into the program. However, one gotcha is that the symbol > has to be reachable from main, otherwise the linker may strip it from the > final executable....
2015 Aug 20
2
Linking existing functions from JITed code
...ne wants a set of private symbols made available to JITed code. >> >> >> >>> On Aug 13, 2015, at 7:41 PM, Lang Hames <lhames at gmail.com> wrote: >>> >>> Hi Andy, >>> >>> I haven't tested this on Linux, but on MacOS the RuntimeDyldMemorManager::getSymbolAddressInProcess method should find symbol addresses in the host program, including symbols from static archives linked into the program. However, one gotcha is that the symbol has to be reachable from main, otherwise the linker may strip it from the final executable. >>> >&g...
2015 Aug 13
4
Linking existing functions from JITed code
Hi I’ve previously used the ExecutionEngine::addGlobalMapping to make existing functions available to my JITed code. I’m currently using ORC, as MCJIT does not appear to be maintained any longer (the kaleidoscope examples have not worked for some time with MCJIT). I’m using just the basic ORC CompileLayer directly. So, I’ve essentially copied the ExecutionEngine::addGlobalMapping related