lkml.org 
[lkml]   [1997]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Off-topic
Date
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

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.087 / U:24.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site