09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>XENIX</strong> Programming C Language Portability<br />

Byte Ordering Summary<br />

The following conventions are used in Tables A-1 and A-2 below:<br />

aO The lowest physically addressed byte of the data item. a1 has a byte address aO +<br />

1, and so on.<br />

bO The least significant byte of the data item, b1 being the next least significant, and<br />

so on.<br />

Note that any program that actually makes use of the following information is<br />

guaranteed to be nonportable.<br />

Table A-1. Byte Ordering for Short Types<br />

CPU Byte Order<br />

aO a1<br />

80<strong>86</strong> bO b1<br />

80<strong>2<strong>86</strong></strong> bO b1<br />

PDP-11 bO b1<br />

VAX-11 bO b1<br />

M68000 b1 bO<br />

Z8000 b1 bO<br />

Table A-2. Byte Ordering for Long Types<br />

CPU Byte Order<br />

aO al a2 a3<br />

80<strong>86</strong> bO bl b2 b3<br />

80<strong>2<strong>86</strong></strong> bO bl b2 b3<br />

PDP-11 b2 b3 bO b1<br />

VAX-11 bO bl b2 b3<br />

M68000 b3 b2 b1 bO<br />

Z8000 b3 b2 b1 bO<br />

A-13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!