|
Boost : |
Subject: Re: [boost] Interest in an LLVM library?
From: Andy Jost (Andrew.Jost_at_[hidden])
Date: 2015-11-18 19:05:32
Nelson, Erik - 2 wrote:
> If this can be used to (reasonably) easily make runtime JITed functions callable from the running executable it would be very useful.
Yes, it can!
There is a testing module defined in the following files that demonstrates how to JIT functions.
https://github.com/andyjost/Sprite-3/blob/master/include/sprite/backend/support/testing.hpp
https://github.com/andyjost/Sprite-3/blob/master/src/testing.cpp
Some tests that use this module can be found in https://github.com/andyjost/Sprite-3/blob/master/examples/branches.cpp.
There is also an example at https://github.com/andyjost/Sprite-3/blob/master/examples/sandbox.cpp.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk