> 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
>
Thanks did not known what to search upon.
Cheers,
Dick Johnson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Project Engineer
Analogic Corporation
Voice : (508) 977-3000 ext. 3754
Fax : (508) 532-6097
Modem : (508) 977-6870
Ftp : ftp@boneserver.analogic.com
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.27 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-