gwyn@Brl@sri-unix (08/20/82)
From: Doug Gwyn <gwyn@Brl>
Date: 9 Aug 82 19:58:25-EDT (Mon)
My informants tell me that
struct {
short svar;
float fvar;
}
has a size of 8 bytes (padding before fvar to put it on a longword
boundary). Why is this and what can be done about it? (I thought
all VAX primitive data types could be arbitrarily byte-aligned.)
I understand PCC can be made to perform various alignments; perhaps
there is a simple fix to make the above struct 6 bytes in size?
This is an important issue, since PDP-11 to VAX-11 binary file
transfers are bollixed up due to this difference. Help!