hopperj at macconnect.com
Thu Aug 12 20:16:21 PDT 1999
alignment of Int with size 4 is 4
alignment of Short with size 2 is 2
alignment of Double with size 8 is 4
alignment of LongLong with size 8 is 4
alignment of Float with size 4 is 4
alignment of Char with size 1 is 1
looks like the packing is dependent upon the arg size if i read this
right. i am not that conversant with c (i program in Ada) but if i
read this right, char is not padded at all, short is padded with one
byte, and both long and longlong with 3. am i reading this correctly?
#define ALIGNMENT_OF_SIZE(S) (((S>1)?2:1))
is what is defined for 68k which is obviously not correct for this
result. can ou give me a macro that works for this result? thanks
for any insight.
> > i got port built. but i get the following out put when i do a make
> > check, the one thing i am not clear about so far is the alignment of
> > size macro for powerpc. i tried 68k and the 4byte version of i386.
> > 4 byte version causes core dumps, 2 byte gives the below.
>Could you compile and run this program and tell us what you see?
> - Godmar
At a recent computer software engineering course in the US, the participants
were given an awkward question to answer. "If you had just boarded an
airliner and discovered that your team of programmers had been responsible
for the flight control software, how many of you would disembark
More information about the kaffe