Path: utzoo!mnetor!uunet!husc6!hao!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!ccvaxa!aglew From: aglew@ccvaxa.UUCP Newsgroups: comp.arch Subject: Re: RISC data alignment Message-ID: <28200092@ccvaxa> Date: 3 Feb 88 17:25:00 GMT References: <2635@calmasd.GE.COM> Lines: 17 Nf-ID: #R:calmasd.GE.COM:2635:ccvaxa:28200092:000:810 Nf-From: ccvaxa.UUCP!aglew Feb 3 11:25:00 1988 Talking about data structure alignment: I have often wanted an optimizing compiler that could take struct { long a; int b; long c; char d; } which is usually mapped into bytes as AAAABBxxCCCCDxxx (on a machine where misaligned accesses are penalized) and make it into AAAACCCCBBDx. Andy "Krazy" Glew. Gould CSD-Urbana. 1101 E. University, Urbana, IL 61801 aglew@gould.com - preferred, if you have nameserver aglew@gswd-vms.gould.com - if you don't aglew@gswd-vms.arpa - if you use DoD hosttable aglew%mycroft@gswd-vms.arpa - domains are supposed to make things easier? My opinions are my own, and are not the opinions of my employer, or any other organisation. I indicate my company only so that the reader may account for any possible bias I may have towards our products.