If you're looking to execute code at runtime (within th eam process - or across a network etc - as the one that compiles that code (rather than writing an executable/object code to dusk etc)) sounds like you're looking for a JIT. Here's some info on how to use/write a JIT using llvm: <a href="https://llvm.org/docs/tutorial/BuildingAJIT1.html">https://llvm.org/docs/tutorial/BuildingAJIT1.html</a><br><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 18, 2018, 5:53 AM Alberto Barbaro via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi all,<div dir="auto">I'm trying to understand how the Module object works more in details, so suppose I've an empty module and I'd like to know if it is possible to add instructions at runtime and execute it. Is it possible to do it? Any suggestion on how?</div><div dir="auto"><br></div><div dir="auto">Thanks</div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>