ROSE
0.11.82.0
|
Settings to control this translator's behavior.
Definition at line 24 of file ToSource.h.
#include <Rose/BinaryAnalysis/ToSource.h>
Public Member Functions | |
Settings () | |
Constructs the default settings. More... | |
Public Attributes | |
bool | traceRiscOps |
Trace the RISC operators for debugging. More... | |
bool | traceInsnExecution |
Generate code that prints instructions. More... | |
Sawyer::Optional< rose_addr_t > | initialInstructionPointer |
Optional initial value for the instruction pointer. More... | |
Sawyer::Optional< rose_addr_t > | initialStackPointer |
Optional initial value for the stack pointer. More... | |
Sawyer::Optional< rose_addr_t > | allocateMemoryArray |
Whether to allocate the global memory array. More... | |
bool | zeroMemoryArray |
Whether to zero the memory array, or just allocated with malloc. More... | |
|
inline |
Constructs the default settings.
Definition at line 49 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 27 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 31 of file ToSource.h.
Sawyer::Optional<rose_addr_t> Rose::BinaryAnalysis::BinaryToSource::Settings::initialInstructionPointer |
Optional initial value for the instruction pointer.
Definition at line 34 of file ToSource.h.
Sawyer::Optional<rose_addr_t> Rose::BinaryAnalysis::BinaryToSource::Settings::initialStackPointer |
Optional initial value for the stack pointer.
Definition at line 37 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 43 of file ToSource.h.
bool Rose::BinaryAnalysis::BinaryToSource::Settings::zeroMemoryArray |
Whether to zero the memory array, or just allocated with malloc.
Definition at line 46 of file ToSource.h.