[LLVMdev] Global variables

Jeremy Lakeman Jeremy.Lakeman at gmail.com
Tue Apr 8 16:17:58 PDT 2014


Just like compiling two separate C files, references to globals have to be
merged at link time.


On Tue, Apr 8, 2014 at 12:33 AM, Jasmin Jahic <jasmin.jahic at gmail.com>wrote:

> Hello,
>
> I've been playing lately a lot with LLVM. In the documentation that I have
> read, it is said that LLVM Context should provide memory isolation.
> However, is it possible to do opposite? I would like to have few modules,
> execution within the same execution context and have them accessing the
> same global variables.
>
> P.S
> I have tried using getGlobalContext, but I get an error stating that this
> is a private member. Am I on the right path?
>
> Best regards,
> Jasmin
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140409/3f5561b3/attachment.html>


More information about the llvm-dev mailing list