External references

David Malcolm dmalcolm@redhat.com
Thu Jan 1 00:00:00 GMT 2015


On Tue, 2015-06-09 at 16:49 -0400, David Malcolm wrote:
> On Tue, 2015-06-09 at 21:39 +0100, Dibyendu Majumdar wrote:
> > If a JIT compiled function needs to call externally defined C
> > functions, can I define these references in the parent context and use
> > in child contexts?
> 
> Yes: you ought to be able to declare the functions with
> GCC_JIT_FUNCTION_IMPORTED in the parent context to get a long-lived
> gcc_jit_function * object, and then call them from child contexts.
or, rather, *create callsites to them* within child contexts, if that
makes sense.

(snip)



More information about the Jit mailing list