OpenASIP 2.2
|
#include <Binary.hh>
Public Types | |
enum | FileType { FT_NULL = 0x00 , FT_OBJSEQ = 0x04 , FT_PURESEQ = 0x05 , FT_LIBSEQ = 0x06 , FT_MIXED = 0x09 , FT_PARALLEL = 0x0D } |
enum | FileArchitecture { FA_NOARCH = 0x00 , FA_TTA_MOVE = 0x01 , FA_TTA_TUT = 0x02 , FA_TDS_TI = 0x03 } |
Public Member Functions | |
Binary () | |
virtual | ~Binary () |
void | addSection (Section *section) |
Section * | section (Word index) const |
Section * | section (Section::SectionType type, Word number) const |
Word | sectionCount () const |
Word | sectionCount (Section::SectionType type) const |
StringSection * | strings () const |
void | setStrings (StringSection *strTable) |
void | setStrings (const ReferenceManager::SafePointer *strTable) |
FileArchitecture | arch () const |
void | setArch (FileArchitecture arch) |
FileType | type () const |
void | setType (FileType type) |
void | setTPEFVersion (TPEFHeaders::TPEFVersion version) |
TPEFHeaders::TPEFVersion | TPEFVersion () const |
Private Member Functions | |
Binary (const Binary &) | |
Binary | operator= (const Binary &) |
Private Attributes | |
const ReferenceManager::SafePointer * | strings_ |
Reference to string table of binary. | |
std::vector< Section * > | sections_ |
Stores sections of binary. | |
FileType | fileType_ |
Binary's file type. See enumerations for more info. | |
FileArchitecture | fileArch_ |
Binary's file architecture. See enumerations for more info. | |
TPEFHeaders::TPEFVersion | tpefVersion_ |
Indicates TPEF format version used. | |
Storing types of TTA code.
Definition at line 54 of file Binary.hh.
TPEF::Binary::Binary | ( | ) |
Constructor.
Definition at line 53 of file Binary.cc.
|
virtual |
Destructor.
Definition at line 60 of file Binary.cc.
References TPEF::ReferenceManager::SafePointer::cleanup(), and sections_.
|
private |
void TPEF::Binary::addSection | ( | Section * | section | ) |
Referenced by TTAProgram::ProgramWriter::createBinary(), TTAProgram::ProgramWriter::createDataSections(), TTAProgram::ProgramWriter::createRelocSections(), LabelManager::finalize(), CodeSectionCreator::finalize(), DataSectionCreator::finalize(), LabelManager::findOrCreateRelocationSection(), MachineResourceManager::initResourceSection(), MachineResourceManager::nullSection(), TPEF::AOutReader::readData(), TPEF::TPEFReader::readData(), MachineResourceManager::stringToChunk(), and MachineResourceManager::undefinedAddressSpace().
FileArchitecture TPEF::Binary::arch | ( | ) | const |
Referenced by TPEF::TPEFWriter::actualWriteBinary(), and TPEFDumper::fileHeaders().
Section * TPEF::Binary::section | ( | Section::SectionType | type, |
Word | number | ||
) | const |
Section * TPEF::Binary::section | ( | Word | index | ) | const |
Referenced by TPEF::TPEFWriter::actualWriteBinary(), TTAProgram::TPEFProgramFactory::addProcedures(), TPEF::TPEFTools::addressSpaceName(), TPEFDumper::addressSpaceString(), TPEF::TPEFReader::aSpaceSection(), TTAProgram::TPEFProgramFactory::build(), TTAProgram::ProgramWriter::createASpaceElement(), TTAProgram::ProgramWriter::createBinary(), TTAProgram::TPEFProgramFactory::createDataMemories(), TTAProgram::ProgramWriter::createDataSections(), TPEFDisassembler::createDisassemblyElement(), TPEFDisassembler::createInstruction(), TTAProgram::TPEFProgramFactory::createLabels(), TPEFDumper::createLogicalIndexes(), TTAProgram::ProgramWriter::createRelocSections(), LabelManager::finalize(), TPEF::SectionReader::finalizeBinary(), TPEF::SectionWriter::finalizeBinary(), LabelManager::findOrCreateRelocationSection(), LabelManager::findRelocationDstSection(), TTAProgram::ProgramWriter::findSection(), LabelManager::findSectionByAddress(), TPEFDumper::findSectionIndex(), TPEF::TPEFTools::hasRelocation(), TPEFDisassembler::initCache(), CodeCompressorPlugin::initializeRelocations(), TPEF::TPEFTools::initRelocationCache(), TPEFDumper::memoryInfo(), TPEF::TPEFTools::relocation(), TPEFDumper::relocationTables(), TPEF::TPEFTools::resourceName(), TPEFDumper::section(), TPEFDumper::sectionHeaders(), TPEF::TPEFReader::sectionOfAddress(), TPEF::TPEFTools::sectionOfElement(), TTAProgram::TPEFProgramFactory::seekFunctionStartPoints(), TPEFDisassembler::startAddress(), and TPEFDumper::symbolTables().
Word TPEF::Binary::sectionCount | ( | ) | const |
Referenced by TPEF::TPEFWriter::actualWriteBinary(), TTAProgram::TPEFProgramFactory::addProcedures(), TPEF::TPEFTools::addressSpaceName(), TPEF::TPEFReader::aSpaceSection(), TTAProgram::TPEFProgramFactory::build(), TTAProgram::ProgramWriter::createBinary(), TTAProgram::TPEFProgramFactory::createDataMemories(), TTAProgram::TPEFProgramFactory::createLabels(), TPEFDumper::createLogicalIndexes(), TPEFDumper::fileHeaders(), LabelManager::finalize(), TPEF::SectionReader::finalizeBinary(), TPEF::SectionWriter::finalizeBinary(), LabelManager::findOrCreateRelocationSection(), LabelManager::findRelocationDstSection(), TTAProgram::ProgramWriter::findSection(), LabelManager::findSectionByAddress(), TPEFDumper::findSectionIndex(), TPEF::TPEFTools::hasRelocation(), CodeCompressorPlugin::initializeRelocations(), TPEF::TPEFTools::initRelocationCache(), TPEFDumper::memoryInfo(), TPEF::TPEFReader::readData(), TPEF::TPEFTools::relocation(), TPEFDumper::relocationTables(), TPEF::TPEFTools::resourceName(), TPEFDumper::section(), TPEFDumper::sectionHeaders(), TPEF::TPEFReader::sectionOfAddress(), TPEF::TPEFTools::sectionOfElement(), TTAProgram::TPEFProgramFactory::seekFunctionStartPoints(), and TPEFDumper::symbolTables().
Word TPEF::Binary::sectionCount | ( | Section::SectionType | type | ) | const |
void TPEF::Binary::setArch | ( | FileArchitecture | arch | ) |
void TPEF::Binary::setStrings | ( | const ReferenceManager::SafePointer * | strTable | ) |
void TPEF::Binary::setStrings | ( | StringSection * | strTable | ) |
void TPEF::Binary::setTPEFVersion | ( | TPEFHeaders::TPEFVersion | version | ) |
Referenced by TPEF::TPEFReader::readData().
void TPEF::Binary::setType | ( | FileType | type | ) |
StringSection * TPEF::Binary::strings | ( | ) | const |
Referenced by TPEF::TPEFWriter::actualWriteBinary(), TPEFDumper::fileHeaders(), and TPEFDumper::sectionHeader().
TPEFHeaders::TPEFVersion TPEF::Binary::TPEFVersion | ( | ) | const |
Referenced by TPEF::TPEFWriter::actualWriteBinary().
FileType TPEF::Binary::type | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |