52 GCCJIT(
bool cleanup =
true);
54 virtual void *
translate(std::string code, std::set<std::string> headerpaths, std::set<std::string> librarypaths,
55 std::set<std::string> libraries, std::string &error,
bool debug =
false);
56 virtual void *
getFunction(
void *handle, std::string name, std::string &error);
57 virtual void free(
void *handle);
JIT compiler interface definition.
provides compilation via gcc and load the compilation result with dlopen/dlsym functions
virtual void free(void *handle)
clean up handled returned by etiss::JIT::translate
virtual void * translate(std::string code, std::set< std::string > headerpaths, std::set< std::string > librarypaths, std::set< std::string > libraries, std::string &error, bool debug=false)
translate C code to executable code and return a handle/pointer that identifies the compilation resul...
GCCJIT(bool cleanup=true)
virtual void * getFunction(void *handle, std::string name, std::string &error)
returns a function pointer to a compiled function from the handle returned by etiss::JIT::translate
compiler interface for just in time compilation of generated C code