🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #76

Re: Character arrays in structures and address alignment -- any standard?

#76
From: John F Carr
Date: Sat, 01 Aug 1992 02:01
10 lines
764 bytes
Given this structure:

	struct x { char a[5], b[3];};

access to (struct x).b will usually be faster if the field is aligned
on a word boundary.

--
    John Carr (jfc@athena.mit.edu)
Technical Details
Message-ID: <1992Aug1.020113.13765@athena.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!wupost!gumby!yale!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jfc
References: <Bs5pMJ.3nM@twwells.com> <7022@skye.ed.ac.uk> <Bs9uw3.1B8@twwells.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!wupost!gumby!yale!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jfc
From: jfc@athena.mit.edu (John F Carr)
Subject: Re: Character arrays in structures and address alignment -- any standard?
Message-ID: <1992Aug1.020113.13765@athena.mit.edu>
Sender: news@athena.mit.edu (News system)
Nntp-Posting-Host: achates.mit.edu
Organization: Massachusetts Institute of Technology
References: <Bs5pMJ.3nM@twwells.com> <7022@skye.ed.ac.uk> <Bs9uw3.1B8@twwells.com>
Date: Sat, 1 Aug 1992 02:01:13 GMT
Lines: 10