ROSE  0.9.10.232
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 22 of file BinaryToSource.h.

#include <BinaryToSource.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 47 of file BinaryToSource.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 25 of file BinaryToSource.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 29 of file BinaryToSource.h.

Sawyer::Optional<rose_addr_t> Rose::BinaryAnalysis::BinaryToSource::Settings::initialInstructionPointer

Optional initial value for the instruction pointer.

Definition at line 32 of file BinaryToSource.h.

Sawyer::Optional<rose_addr_t> Rose::BinaryAnalysis::BinaryToSource::Settings::initialStackPointer

Optional initial value for the stack pointer.

Definition at line 35 of file BinaryToSource.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 41 of file BinaryToSource.h.

bool Rose::BinaryAnalysis::BinaryToSource::Settings::zeroMemoryArray

Whether to zero the memory array, or just allocated with malloc.

Definition at line 44 of file BinaryToSource.h.


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