|
ETISS 0.11.2
ExtendableTranslatingInstructionSetSimulator(version0.11.2)
|
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 | |
| 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 | |
| virtual void | free (void *handle)=0 |
| clean up handled returned by etiss::JIT::translate | |
| std::string | getName () |
| returns the JIT instance name previously passed to the constructor | |
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 GCCJIT, etiss::LLVMJIT, and TCCJIT.
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 GCCJIT, etiss::LLVMJIT, and TCCJIT.
Referenced by etiss::Translation::getBlock(), verifyJITPragmaPack(), and verifyJITSizeOf().

| std::string JIT::getName | ( | ) |
returns the JIT instance name previously passed to the constructor
Definition at line 22 of file JIT.cpp.
References name_.
Referenced by etiss::CPUCore::getJITName().

|
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 GCCJIT, etiss::LLVMJIT, and TCCJIT.
Referenced by etiss::Translation::getBlock(), verifyJITPragmaPack(), and verifyJITSizeOf().
