Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!gatech!amdcad!crackle!tim From: tim@crackle.amd.com (Tim Olson) Newsgroups: comp.arch Subject: Re: Endian wars Message-ID: <24404@amdcad.AMD.COM> Date: 9 Feb 89 22:59:11 GMT References: <6133@columbia.edu> <3300050@m.cs.uiuc.edu> <8480@aw.sei.cmu.edu> <24384@amdcad.AMD.COM> <8496@aw.sei.cmu.edu> Sender: news@amdcad.AMD.COM Reply-To: tim@amd.com (Tim Olson) Organization: Advanced Micro Devices, Inc. Sunnyvale CA Lines: 13 Summary: Expires: Sender: Followup-To: In article <8496@aw.sei.cmu.edu> firth@bd.sei.cmu.edu (Robert Firth) writes: | However, is only a single byte required? Suppose you have an array of | a struct; is it legal to compute the address of array[upb+1].component? | If so, then you really do need to allocate a complete dead array element. It is not legal to compute the address of array[upb+1].component (at least if component has a non-zero offset from the beginning of the structure). -- Tim Olson Advanced Micro Devices (tim@crackle.amd.com)