OpenASIP
2.0
|
#include "tce_config_public.h"
Go to the source code of this file.
Macros | |
#define | SIZEOF_LONG 8 |
#define | HOST_BIGENDIAN 0 |
#define | WORDS_BIGENDIAN 0 |
Typedefs | |
typedef unsigned long | LongWord |
typedef long | SignedLongWord |
typedef unsigned long | ULongWord |
typedef long | SLongWord |
typedef unsigned char | Byte |
typedef Word | UInt32 |
typedef Word | UIntWord |
typedef SignedWord | SIntWord |
typedef float | FloatWord |
typedef double | DoubleWord |
typedef UInt32 | InstructionAddress |
typedef UInt32 | DataAddress |
typedef UInt32 | AddressImage |
Type for storing addresses to memory image. More... | |
typedef Word | MinimumAddressableUnit |
Type for storing a MAU (must be unsigned type!). This limits the maximum size of the simulated minimum addressable unit in the target's data memory. More... | |
typedef long long | CycleCount |
Type for storing simulation cycle counts. More... | |
Variables | |
const Byte | BYTE_BITWIDTH = 8*sizeof(Byte) |
const Byte | HALFWORD_BITWIDTH = 8*sizeof(HalfWord) |
const Byte | WORD_BITWIDTH = 8*sizeof(Word) |
const Byte | LONGWORD_BITWIDTH = 8*sizeof(LongWord) |
const Byte | INT_WORD_SIZE = 8 * sizeof(UIntWord) |
const Byte | FLT_WORD_SIZE = 8 * sizeof(FloatWord) |
const Byte | DBL_WORD_SIZE = 8 * sizeof(DoubleWord) |
This file contains definitions of base data types such as Word, HalfWord, Byte. These types have fixed, machine-independent bit width. If no base type of the host machine that matches the required bit width is found, compilation fails. In this case, it is necessary to add new cases to the type definitions for the host machine at hand.
If the host machine does not support IEC 559 (formerly, IEEE-754) floating point types as native built-in types, then the floating point type definitions should be replaced by abstract data types with all the operators applicable to floating-point types appropriately overloaded.
Definition in file BaseType.hh.
#define HOST_BIGENDIAN 0 |
HOST_WORDS_BIGENDIAN is 1 when the host machine lays out the most significant byte of the word at the lowest memory address.
Definition at line 123 of file BaseType.hh.
#define SIZEOF_LONG 8 |
Definition at line 46 of file BaseType.hh.
#define WORDS_BIGENDIAN 0 |
Definition at line 124 of file BaseType.hh.
typedef UInt32 AddressImage |
Type for storing addresses to memory image.
Definition at line 179 of file BaseType.hh.
typedef unsigned char Byte |
Machine-independent definition of byte type.
Definition at line 116 of file BaseType.hh.
typedef long long CycleCount |
Type for storing simulation cycle counts.
Definition at line 187 of file BaseType.hh.
typedef UInt32 DataAddress |
Definition at line 176 of file BaseType.hh.
typedef double DoubleWord |
A double-precision, IEC 559 floating-point number used in simulation.
Definition at line 166 of file BaseType.hh.
typedef float FloatWord |
A single-precision, IEC 559 floating-point number used in simulation.
Definition at line 160 of file BaseType.hh.
typedef UInt32 InstructionAddress |
Definition at line 175 of file BaseType.hh.
typedef unsigned long LongWord |
Definition at line 49 of file BaseType.hh.
typedef Word MinimumAddressableUnit |
Type for storing a MAU (must be unsigned type!). This limits the maximum size of the simulated minimum addressable unit in the target's data memory.
Definition at line 184 of file BaseType.hh.
typedef long SignedLongWord |
Definition at line 50 of file BaseType.hh.
typedef SignedWord SIntWord |
Maximum sized signed integer used in simulation in 32-bit mode.
Definition at line 149 of file BaseType.hh.
typedef long SLongWord |
Definition at line 52 of file BaseType.hh.
typedef Word UInt32 |
32bit unsigned integer (alias for Word).
Definition at line 134 of file BaseType.hh.
typedef Word UIntWord |
Maximum sized unsigned integer used in simulation in 32-bit mode.
Definition at line 144 of file BaseType.hh.
typedef unsigned long ULongWord |
Definition at line 51 of file BaseType.hh.
Definition at line 136 of file BaseType.hh.
Referenced by TPEF::TPEFSymbolSectionWriter::actualWriteData(), CodeSectionCreator::addAnnotationes(), TPEF::DataSection::addMAU(), SimValue::binaryValue(), SimValue::bitElement(), TPEF::DebugStabElem::byte(), TPEF::RawSection::bytesToMAUs(), SimValue::clearToZero(), TPEF::DebugStabElem::DebugStabElem(), SimValue::deepCopy(), TPEF::TPEFDataSectionWriter::elementSize(), TPEF::TPEFUDataSectionWriter::elementSize(), TPEF::TPEFRelocSectionReader::finalize(), SimValue::hexValue(), TPEF::AOutRelocationSectionReader::initializeRelocElement(), TPEF::DataSection::MAU(), TTAProgram::DataDefinition::MAU(), TPEF::RawSection::MAUsToBytes(), Memory::Memory(), MemoryGridTable::memoryContents(), TPEF::ReferenceManager::HashFunctions::operator()(), SimValue::operator=(), TPEF::TPEFCodeSectionReader::readAnnotations(), TPEF::TPEFCodeSectionReader::readData(), TPEF::TPEFSymbolSectionReader::readData(), SimValue::setBitElement(), SimValue::setBitWidth(), SimValue::signExtendTo(), SimValue::SimValue(), SimValue::sIntWordValue(), DataSectionCreator::sizeInWords(), SimValue::sLongWordValue(), TDGenerator::ValueType::vectorTypesOfSubwordWidth(), TPEF::TPEFCodeSectionWriter::writeAnnotations(), TPEF::TPEFCodeSectionWriter::writeAttributeField(), TPEF::LEDataSection::writeValue(), TPEF::DataSection::writeValue(), and SimValue::zeroExtendTo().
const Byte DBL_WORD_SIZE = 8 * sizeof(DoubleWord) |
Definition at line 169 of file BaseType.hh.
Definition at line 168 of file BaseType.hh.
const Byte HALFWORD_BITWIDTH = 8*sizeof(HalfWord) |
Definition at line 137 of file BaseType.hh.
Referenced by TPEF::SectionIndexReplacer::writeReplacement().
Maximum size of integer in simulator.
Definition at line 154 of file BaseType.hh.
Referenced by ITemplateBroker::assignImmediate(), POMValidator::checkLongImmediates(), and ITemplateBroker::findITemplates().
Definition at line 139 of file BaseType.hh.
const Byte WORD_BITWIDTH = 8*sizeof(Word) |
Definition at line 138 of file BaseType.hh.
Referenced by TTAProgram::TerminalBasicBlockReference::value(), and TTAProgram::TerminalInstructionAddress::value().