Re: Off-topic

root (abszero@epix.net)
Tue, 4 Mar 1997 20:44:44 -0500 (EST)


Richard B. Johnson wrote:
>
> Anyone know how to get gcc to NOT pad structs?
> __atttribute__((aligned (1))) does NOT work. It insists upon aligning
> long-words to long-words boundaries. The problem is that a certain data
> element ___specified___ by someone else, MUST exist in a light-pipe packet
> EXACTLY where specified!
>
> Cheers,

__attribute__((packed))

>From gcc's info page:

The `aligned' attribute can only increase the alignment; but you can
decrease it by specifying packed' as well. See below.


--- James Mastros