Integer types used in ANSI C are short, int, long, and long long:
Table A-2 Representation of short
Bits |
Content |
---|---|
8 - 15 |
Byte 0 (SPARC) Byte 1 (Intel) |
0 - 7 |
Byte 1 (SPARC) Byte 0 (Intel) |
Table A-3 Representation of int
Bits |
Content |
---|---|
24 - 31 |
Byte 0 (SPARC) Byte 3 (Intel) |
16 - 23 |
Byte 1 (SPARC) Byte 2 (Intel) |
8 - 15 |
Byte 2 (SPARC) Byte 1 (Intel) |
0 - 7 |
Byte 3 (SPARC) Byte 0 (Intel) |
Table A-4 Representation of long on Intel and SPARC v8 versus SPARC v9
Bits |
Content |
---|---|
24 - 31 |
Byte 0 (SPARC) v8 Byte 4 (SPARC) v9 Byte 3 (Intel) |
16 - 23 |
Byte 1 (SPARC) v8 Byte 5 (SPARC) v9 Byte 2 (Intel) |
8 - 15 |
Byte 2 (SPARC) v8 Byte 6 (SPARC) v9 Byte 1 (Intel) |
0 - 7 |
Byte 3 (SPARC) v8 Byte 7 (SPARC) v9 Byte 0 (Intel) |
Table A-5 Representation of long long [long long is not available in -Xc mode.]
Bits |
Content |
---|---|
56 - 63 |
Byte 0 (SPARC) Byte 7 (Intel) |
48 - 55 |
Byte 1 (SPARC) Byte 6 (Intel) |
40 - 47 |
Byte 2 (SPARC) Byte 5 (Intel) |
32 - 39 |
Byte 3 (SPARC) Byte 4 (Intel) |
24 - 31 |
Byte 4 (SPARC) Byte 3 (Intel) |
16 - 23 |
Byte 5 (SPARC) Byte 2 (Intel) |
8 - 15 |
Byte 6(SPARC) Byte 1 (Intel) |
0 - 7 |
Byte 7 (SPARC) Byte 0 (Intel) |