Subject | Alignment of blr_quad Database |
---|---|
Author | Jim Starkey |
Post date | 2004-10-27T22:51:12Z |
It is imperitive that the byte layout of blr message be invariant across
platforms. Somebody at Borland did not understand this, and made
align.h, the include file that defines datatype alignments, conditional
on macro NATIVE_QUAD. This was a grave error.
The datatype blr_quad is defined by the OSRI architecture as a four byte
alignment. Forcing an eight byte alignment will fail, first time, every
time.
I strongly urge anyone maintaining an active code base to remove the
conditionalization from align.h.
platforms. Somebody at Borland did not understand this, and made
align.h, the include file that defines datatype alignments, conditional
on macro NATIVE_QUAD. This was a grave error.
The datatype blr_quad is defined by the OSRI architecture as a four byte
alignment. Forcing an eight byte alignment will fail, first time, every
time.
I strongly urge anyone maintaining an active code base to remove the
conditionalization from align.h.