>
>
> 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
/*
* try to guess alignment
*/
#include <stdio.h>
#define A(type, name) \
struct { \
unsigned char _; \
type x; \
} name
A(int, Int);
A(short, Short);
A(double, Double);
A(long long, LongLong);
A(float, Float);
A(char, Char);
main()
{
#define P(name) \
printf("alignment of "#name" with size %d is %d\n", \
sizeof(name.x), (char*)&name.x - (char*)&name)
P(Int);
P(Short);
P(Double);
P(LongLong);
P(Float);
P(Char);
}