ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
compiler interface for just in time compilation of generated C code More...
#include <JIT.h>
Public Member Functions | |
JIT (std::string name) | |
virtual | ~JIT () |
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=true)=0 |
translate C code to executable code and return a handle/pointer that identifies the compilation result More... | |
virtual void * | getFunction (void *handle, std::string name, std::string &error)=0 |
returns a function pointer to a compiled function from the handle returned by etiss::JIT::translate More... | |
virtual void | free (void *handle)=0 |
clean up handled returned by etiss::JIT::translate More... | |
std::string | getName () |
returns the JIT instance name previously passed to the constructor More... | |
Private Attributes | |
std::string | name_ |
compiler interface for just in time compilation of generated C code
|
pure virtual |
clean up handled returned by etiss::JIT::translate
Implemented in TCCJIT, etiss::LLVMJIT, and GCCJIT.
Referenced by verifyJITPragmaPack(), and verifyJITSizeOf().
|
pure virtual |
returns a function pointer to a compiled function from the handle returned by etiss::JIT::translate
Implemented in TCCJIT, etiss::LLVMJIT, and GCCJIT.
Referenced by etiss::Translation::getBlock(), verifyJITPragmaPack(), and verifyJITSizeOf().
std::string JIT::getName | ( | ) |
|
pure virtual |
translate C code to executable code and return a handle/pointer that identifies the compilation result
code | generated code |
headerpaths | paths where required header files are located |
librarypaths | paths where required libraries are located (usually not needed since libraries don't require full linking) |
libraries | file names of required libraries (usually not needed since libraries don't require full linking) |
error | string to return additional error information |
debug | if true then compilation should try to enable gdb to jump into compiled functions |
Implemented in TCCJIT, etiss::LLVMJIT, and GCCJIT.
Referenced by etiss::Translation::getBlock(), verifyJITPragmaPack(), and verifyJITSizeOf().
|
private |