Message-ID: <354A552C.5911EFD9@ipass.net> From: Terry MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with integer declaration? References: <354AB827 DOT 8EE19C9D AT mailexcite DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 11 Date: Fri, 01 May 1998 23:09:40 GMT NNTP-Posting-Host: ts7-208-ppp.ipass.net NNTP-Posting-Date: Fri, 01 May 1998 19:09:40 EDT Organization: iPass.Net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I think it has something to do with alignment. For example, typedef struct { char abc[1]; int i; char def[1]; } teststruct; The size returned here is 12 on my linux system (not 6). Here, the characters "abc" and "def" take 4 bytes rather than 1. I think there is an option for gcc that will align on byte boundaries. Sorry I don't remember it off hand. Hope this helps. Terry