Is it possible to force gcc to odd byte alignment?
For example, if I had the following code fragment:
typedef struct {
char element_1;
int element_2;
main()Quote:} test_struct;
{
test_struct x;
printf("sizeof(x)=%d", sizeof(x));
Is there any gcc compilation switch that will cause sizeof(x) toQuote:}
return a 5 instead of 8 bytes?
I've looked through the gcc man pages and it doesn't look like
it supports odd byte alignment. Can someone confirm.
Thanks,
John