Messages in this thread |  | | Date | Wed, 5 Sep 2001 00:08:44 +0200 | From | Kurt Garloff <> | Subject | Re: gcc |
| |
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.) [unhandled content-type:application/pgp-signature] |  |