This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Ignore earlier dumb question, but here is another


>>>>> "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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]