JITResult

Class wrapper for gcc_jit_result

Constructors

this
this()
this
this(gcc_jit_result* result)

Members

Functions

getCode
void* getCode(string name)

Locate a given function within the built machine code. This will need to be cast to a function pointer of the correct type before it can be called.

getGlobal
void* getGlobal(string name)

Locate a given global within the built machine code. It must have been created using JITGlobalKind.EXPORTED. This returns is a pointer to the global.

getResult
gcc_jit_result* getResult()

Returns the internal gcc_jit_result object.

release
void release()

Once we're done with the code, this unloads the built .so file. After this call, it's no longer valid to use this JITResult.

Meta