[llvm-dev] [ORC] Compile On Demand and static constructors

Alex Denisov via llvm-dev llvm-dev at lists.llvm.org
Thu Jul 13 01:25:26 PDT 2017

Hi everyone, hi Lang.

I am using ORC’s CoD layer to run some code.
However, I am having problems with understanding how to call static constructors properly.
Previously, when I did not use CoD, I run all constructors for each module before running ‘main’.
Now I see that some constructors may be not needed at all.
The question is: how do I decide which constructor to run and at which point?
I use LLVM 3.9, in case it matters.

I would appreciate any hints and recommendations.

Thank you.
Software Engineer, https://lowlevelbits.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170713/b19be5a5/attachment.sig>

More information about the llvm-dev mailing list