1byte alignment for a whole lib/exe - how?

pmueller pmueller@decrc.abb.de
Thu Mar 11 03:38:00 GMT 1999


Hi,

I want to port a communication stack that requires 1byte alignment
because of hardware accesses. Under Windows (VC++) there is an option to

compile a whole project with one byte alignment. Is this with gcc
possible too? I found only commands (pack ...) to pack one single
structure.

Assuming I have built the com-lib with one byte alignment, is it
possible to use it together with other code (main ...) that was compiled

with default alignment (e.g. 8bytes)?

Platform:
Linux, i586, egcs-2.91.60 (egcs-1.1.1 release)

Thank you in advance,
Peter



More information about the Gcc mailing list