From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Datatype sizes Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <200005091019 DOT MAA17313 AT maggiore DOT iperbole DOT bologna DOT it> <391812bf DOT 18389559 AT news DOT freeserve DOT net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22 X-Trace: /KtlGU1i3sx6BXMRA1yR9pueSobjCoI/WlGjppgyWb8HLdMdBC2H/YV+GvvNS2WjfEaysdycHiud!nuzW6HrgJDdm2cUYHe283SAZx2pL3hpc+TgG6fp2e97LzLUy+GcZkRbb3/Z5rQyuhXrteSJuxfzT!hAaVdQ== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 09 May 2000 15:52:52 GMT Distribution: world Date: Tue, 09 May 2000 15:52:52 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 09 May 2000 13:29:58 GMT, dontmailme AT iname DOT com (Steamer) wrote: >pad2369 wrote: > >>I thought gcc aligned to 32 bit words auto variables >>for efficiency reasons, like with struct members, thus >>allocating 8 bytes in the above example. > >Single bytes can be accessed efficiently in any position, >because wherever you put them they never cross a boundary. Anyone know why `short' variables are said to be so much slower than `int'/`long' variables, even if they don't cross boundaries? -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/