ROSE  0.11.145.0
Public Member Functions | Public Attributes | List of all members
Rose::BinaryAnalysis::BinaryToSource::Settings Struct Reference

Description

Settings to control this translator's behavior.

Definition at line 26 of file ToSource.h.

#include <Rose/BinaryAnalysis/ToSource.h>

Collaboration diagram for Rose::BinaryAnalysis::BinaryToSource::Settings:
Collaboration graph
[legend]

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...
 

Constructor & Destructor Documentation

Rose::BinaryAnalysis::BinaryToSource::Settings::Settings ( )
inline

Constructs the default settings.

Definition at line 51 of file ToSource.h.

Member Data Documentation

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.


The documentation for this struct was generated from the following file: