MCore Characteristics

The MCore processor has the characteristics shown in the following table:
Characteristic Description
Memory addressing
Byte-addressed with 32-bit addresses.
Bit numbering
Bit 0 is least-significant bit.
Byte ordering
Big endian by default. The most significant byte of a multi-byte value is stored at the lowest address.
Stack alignment
8-byte alignment.
Floating-point format
IEEE 754 format (32 and 64 bits) with the most significant byte at the lowest address.
Character encoding
ASCII.
C/C++ bit field allocation
starts at most-significant bit.
C/C++ maximum bit field size
Four or fewer bytes.
C/C++ struct, union, array alignment
Aligned to the maximum alignment of any of its components.

The following tables list the data type alignments for C, C++, and FORTRAN.
C/C++ Data Type Size Alignment
int
32
32
long
32
32
long long
64
64
*
32
32
short
16
16
char
8
8
float
32
32
double
64
64
long double
64
64
unsigned
32
32
unsigned char
8
8
unsigned short
16
16
enum (default)
32
32
enum (option)
8, 16, 32
varies
FORTRAN Data Type Size Alignment
REAL
32
32
REAL*8
64
32
DOUBLE PRECISION
64
32
CHARACTER
8
8
INTEGER*1
8
8
INTEGER*2
16
16
INTEGER
32
32
LOGICAL*1
8
8
LOGICAL*2
16
16
LOGICAL
32
32
COMPLEX
64
32
COMPLEX*8
64
32
COMPLEX*16
128
32
DOUBLE COMPLEX
128
32


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.