OpenASIP  2.0
Namespaces | Enumerations | Variables
TPEFHeaders.hh File Reference
#include "TPEFBaseType.hh"
Include dependency graph for TPEFHeaders.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 TPEF
 
 TPEF::TPEFHeaders
 

Enumerations

enum  TPEF::TPEFHeaders::TPEFVersion { TPEF::TPEFHeaders::TPEF_V1 = 0x01, TPEF::TPEFHeaders::TPEF_V2 = 0x02 }
 
enum  TPEF::TPEFHeaders::FileHeaderOffset {
  TPEF::TPEFHeaders::FH_ID = 0, TPEF::TPEFHeaders::FH_ARCH = 10, TPEF::TPEFHeaders::FH_TYPE = 11, TPEF::TPEFHeaders::FH_SHOFF = 12,
  TPEF::TPEFHeaders::FH_SIZE = 16, TPEF::TPEFHeaders::FH_SHSIZE = 18, TPEF::TPEFHeaders::FH_SHNUM = 20, TPEF::TPEFHeaders::FH_SHSTRTAB = 22
}
 
enum  TPEF::TPEFHeaders::SectionHeaderOffset {
  TPEF::TPEFHeaders::SH_NAME = 0, TPEF::TPEFHeaders::SH_TYPE = 4, TPEF::TPEFHeaders::SH_FLAGS = 5, TPEF::TPEFHeaders::SH_ADDR = 6,
  TPEF::TPEFHeaders::SH_OFFSET = 10, TPEF::TPEFHeaders::SH_SIZE = 14, TPEF::TPEFHeaders::SH_ID = 18, TPEF::TPEFHeaders::SH_ASPACE = 20,
  TPEF::TPEFHeaders::SH_PADDING = 21, TPEF::TPEFHeaders::SH_LINK = 22, TPEF::TPEFHeaders::SH_INFO = 24, TPEF::TPEFHeaders::SH_ENTSIZE = 28
}
 
enum  TPEF::TPEFHeaders::SymbolOtherValues { TPEF::TPEFHeaders::STO_ABS = 0x80 }
 
enum  TPEF::TPEFHeaders::RelocTypeValues { TPEF::TPEFHeaders::STF_RELOCATION_TYPE_MASK = 0x0F, TPEF::TPEFHeaders::STF_CHUNK = 0x80 }
 
enum  TPEF::TPEFHeaders::InstructionAnnotationMasks { TPEF::TPEFHeaders::IANNOTE_CONTINUATION = 0x80, TPEF::TPEFHeaders::IANNOTE_SIZE = 0x7f }
 
enum  TPEF::TPEFHeaders::InstructionAttributeField {
  TPEF::TPEFHeaders::IA_TYPE = 0x01, TPEF::TPEFHeaders::IA_END = 0x02, TPEF::TPEFHeaders::IA_ANNOTE = 0x04, TPEF::TPEFHeaders::IA_EMPTY = 0x08,
  TPEF::TPEFHeaders::IA_IMMSIZE = 0xf0, TPEF::TPEFHeaders::IA_MGUARD = 0x10
}
 
enum  TPEF::TPEFHeaders::InstructionFieldType {
  TPEF::TPEFHeaders::IE_SRC_TYPE_MASK = 0x0c, TPEF::TPEFHeaders::IE_DST_TYPE_MASK = 0x30, TPEF::TPEFHeaders::IE_GUARD_TYPE_MASK = 0x80, TPEF::TPEFHeaders::MVS_NULL = 0x00,
  TPEF::TPEFHeaders::MVS_RF = 0x04, TPEF::TPEFHeaders::MVS_IMM = 0x08, TPEF::TPEFHeaders::MVS_UNIT = 0x0c, TPEF::TPEFHeaders::MVD_NULL = 0x00,
  TPEF::TPEFHeaders::MVD_RF = 0x10, TPEF::TPEFHeaders::MVD_ILLEGAL = 0x20, TPEF::TPEFHeaders::MVD_UNIT = 0x30, TPEF::TPEFHeaders::MVG_UNIT = 0x00,
  TPEF::TPEFHeaders::MVG_RF = 0x80, TPEF::TPEFHeaders::IE_GUARD_INV_MASK = 0x40
}
 

Variables

const Byte TPEF::TPEFHeaders::FH_ID_BYTES []
 File format identification mark (TPEF version 1). See TPEF documentation for more info. More...
 
const Byte TPEF::TPEFHeaders::FH_ID_SIZE = 10
 Size of file identification code. More...
 
const HalfWord TPEF::TPEFHeaders::FH_HEADER_SIZE = 26
 Size of file header. More...
 
const HalfWord TPEF::TPEFHeaders::SH_HEADER_SIZE = 32
 Suze of section header. More...
 

Detailed Description

TPEF file and section header related offsets and some other TPEF binary file related values.

Author
Mikael Lepistö 2004 (tmlepist-no.spam-cs.tut.fi)
Note
rating: yellow

Definition in file TPEFHeaders.hh.