<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div><div>Hi Duncan, </div><div><br></div><div>that is exactly it. My hope is to keep the need for rebuild isolated to the individual modules where the modifications occur, and relink appropiately. </div><div><br></div><div>I've discussed this with people that have worked on llvm frontends before, and they suggest that this would require keeping copies of all the modules around,</div><div>rebuild the modules that changed, and then relink everything into a single static fat module that the JIT can use, which is btw my default plan to implement, unless/until i learn a better alternative</div><div><br></div><div>the main drawback of that would be, i think, to have to relink all dependencies into the fat module everytime one of the modules change, since as far as i know, you cannot remove symbols
already linked in a module and relink a new version</div><div><br></div><div>thanks for replying!</div><div><br></div><div><br></div> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">De:</span></b> Duncan Sands <baldrick@free.fr><br> <b><span style="font-weight: bold;">Para:</span></b> <br> <b><span style="font-weight: bold;">Enviado:</span></b> miércoles, 11 de julio de 2012 9:40<br> <b><span style="font-weight: bold;">Asunto:</span></b> Re: [LLVMdev] dynamic linkage for jit<br> </font> </div> <br>Hi Charllls, I didn't really get it. Are you saying that you would execute some<br>functions using the JIT then, later, those functions will be modified and thus<br>need to be re-jitted?<br><br>Ciao, Duncan.<br><br>On
07/06/12 20:13, Charllls Alquarra wrote:<br>><br>> Sorry if it comes out a bit pushy bumping my own question, but it's been really<br>> difficult to find any info regarding this functionality<br>> in the mailing list archives. Just some emails i've found from people working on<br>> NaCl:<br>><br>> <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-December/046055.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-December/046055.html</a><br>><br>> is there a branch where this is being work on, or is internal chromium project<br>> so far? Also i'm not sure if this is exactly the same as what i'm looking for,<br>> but it sounds similar enough<br>><br>> *De:* Charllls Alquarra <<a ymailto="mailto:charlesneedspace@yahoo.com.ar" href="mailto:charlesneedspace@yahoo.com.ar">charlesneedspace@yahoo.com.ar</a>><br>> *Para:* "<a ymailto="mailto:LLVMdev@cs.uiuc.edu"
href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>" <><br>> *Enviado:* sábado, 2 de junio de 2012 12:14<br>> *Asunto:* [LLVMdev] dynamic linkage for jit<br>><br>><br>><br>> Hi,<br>><br>> I want to execute functions in a module, this module will have dependencies<br>> resolved in other modules. the modules might change (dynamic compilation<br>> environment) so i would prefer not not link all the dependencies in a single<br>> monolithic module, that is, if it can be avoided<br>><br>> I hope to use Linker::linkModules but this is always destructive. That is ok for<br>> one module depending on a single one, since if that one changed, is no big deal,<br>> but isn't it overkill to rebuild and relink N-1 modules that did not change just<br>> because of a single one that changed?<br>><br>> I wonder if there is a non-destructive version of linkModules that can work for<br>> JIT
execution.<br>><br>> _______________________________________________<br>> LLVM Developers mailing list<br>> <a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <mailto:<a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>> <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>><br>><br>><br>><br>> _______________________________________________<br>> LLVM Developers mailing list<br>> <a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev"
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>><br><br><br>_______________________________________________<br>LLVM Developers mailing list<br><a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br><br><br> </div> </div> </div></body></html>