This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Ignore earlier dumb question, but here is another
- To: "Lewin A.R.W. Edwards" <larwe at larwe dot com>
- Subject: Re: [ECOS] Ignore earlier dumb question, but here is another
- From: Jesper Skov <jskov at redhat dot com>
- Date: 09 Jan 2001 09:21:05 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- References: <4.3.2.7.2.20010108175535.00aefc20@larwe.com>
>>>>> "Lewin" == Lewin A R W Edwards <larwe@larwe.com> writes:
Lewin> I think I'm on crack. It took about three hours for my messages
Lewin> to get back to me via the list and when they did, I immediately
Lewin> had a memory jolt that told me the correct switch to use. I've
Lewin> recompiled eCos with -fpack-struct and all is seemingly
Lewin> well. However I worry that the OS might not have been tested in
Lewin> this configuration. Any known caveats?
Why don't you use the packed attribute on the structures that must be
packed, and allow the compiler to use aligment for better performance
on the rest? See the GCC manual for information about the packed
attribute.
Jesper