ROSE 0.11.145.192
|
Settings to control this translator's behavior.
Definition at line 26 of file ToSource.h.
#include <Rose/BinaryAnalysis/ToSource.h>
Public Member Functions | |
Settings () | |
Constructs the default settings. | |
Public Attributes | |
bool | traceRiscOps |
Trace the RISC operators for debugging. | |
bool | traceInsnExecution |
Generate code that prints instructions. | |
Sawyer::Optional< rose_addr_t > | initialInstructionPointer |
Optional initial value for the instruction pointer. | |
Sawyer::Optional< rose_addr_t > | initialStackPointer |
Optional initial value for the stack pointer. | |
Sawyer::Optional< rose_addr_t > | allocateMemoryArray |
Whether to allocate the global memory array. | |
bool | zeroMemoryArray |
Whether to zero the memory array, or just allocated with malloc. | |
|
inline |
Constructs the default settings.
Definition at line 51 of file ToSource.h.
bool Rose::BinaryAnalysis::BinaryToSource::Settings::traceRiscOps |
Trace the RISC operators for debugging.
This causes diagnostic output to be emitted as the source code is being generated.
Definition at line 29 of file ToSource.h.
bool Rose::BinaryAnalysis::BinaryToSource::Settings::traceInsnExecution |
Generate code that prints instructions.
This causes the generated source to contain calls to printf so that each instruction is printed to standard error as it is executed.
Definition at line 33 of file ToSource.h.
Sawyer::Optional<rose_addr_t> Rose::BinaryAnalysis::BinaryToSource::Settings::initialInstructionPointer |
Optional initial value for the instruction pointer.
Definition at line 36 of file ToSource.h.
Sawyer::Optional<rose_addr_t> Rose::BinaryAnalysis::BinaryToSource::Settings::initialStackPointer |
Optional initial value for the stack pointer.
Definition at line 39 of file ToSource.h.
Sawyer::Optional<rose_addr_t> Rose::BinaryAnalysis::BinaryToSource::Settings::allocateMemoryArray |
Whether to allocate the global memory array.
If this setting has no value (the default) then the global "mem" array is not allocated, but rather declared "extern". If the setting is zero, then the array is allocated to be just large enough to hold the maximum initialized memory address. Otherwise, the array is allocated to the specified size.
Definition at line 45 of file ToSource.h.
bool Rose::BinaryAnalysis::BinaryToSource::Settings::zeroMemoryArray |
Whether to zero the memory array, or just allocated with malloc.
Definition at line 48 of file ToSource.h.