Path: utzoo!utgpu!water!watmath!clyde!att!whuts!homxb!hound!rkl1 From: rkl1@hound.UUCP (K.LAUX) Newsgroups: comp.lang.c Subject: Re: Overzealous alignment and padding Message-ID: <2687@hound.UUCP> Date: 16 Oct 88 17:40:06 GMT References: <410@sdrc.UUCP> Organization: AT&T Bell Laboratories, Holmdel Lines: 12 The best way is to align the structure yourself! Sounds as if you have structures where the first field is a 'char', so you don't know how the compiler will align it. So don't make the first field a char...maybe you might have to insert a dummy 'int' field if all you have are 'char' fields. Alternatively, you could use a *union* of an 'int' with your structure of 'char' fields. What you're doing is allowing the *compiler* to decide how to align instead of *telling* the compiler how to align... --rkl