Re: gcc

From: Kurt Garloff (kurt@garloff.de)
Date: Tue Sep 04 2001 - 17:08:44 EST


On Wed, Sep 05, 2001 at 09:04:01AM +1200, David Rundle wrote:
> hi i need help i have a data struct that matchs some hardwear but
> gcc is alignin it this meins it is out of sync whit the hardwear
> like
> char is 2 bytes
> long double is 12 bytes
> will thats what gcc thinks
>
> so i need to tell gcc not to align the data struct
>
> may be like

__attribute__((packed))

Regards,

-- 
Kurt Garloff                   <kurt@garloff.de>         [Eindhoven, NL]
Physics: Plasma simulations  <K.Garloff@Phys.TUE.NL>  [TU Eindhoven, NL]
Linux: SCSI, Security          <garloff@suse.de>    [SuSE Nuernberg, DE]
 (See mail header or public key servers for PGP2 and GPG public keys.)


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 07 2001 - 21:00:29 EST