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

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.
 

Constructor & Destructor Documentation

◆ Settings()

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

Constructs the default settings.

Definition at line 51 of file ToSource.h.

Member Data Documentation

◆ traceRiscOps

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.

◆ traceInsnExecution

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.

◆ initialInstructionPointer

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.

◆ initialStackPointer

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.

◆ allocateMemoryArray

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.

◆ zeroMemoryArray

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: