From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] am I nuts? does 8c support packed structs? From: Brantley Coile Date: Fri, 22 Oct 2004 13:50:26 -0400 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: f4a928ea-eacd-11e9-9e20-41e7f4b1d025 At a prior job I was in charge of the embedded kernel for a piece of telco gear. Another group was writing the application and doing so on Sun Motorola boxes. I warned them that my kernel would be aligning structures to 32 bits, not the 16 bits that Sun OS was forced to use because of all the SunOS structures that assumed they overlayed protocol headers. My warning had the effect of causing the application developers to write a bunch of code to marshal things into and out of their inter-machine messages. But somehow they still managed to screw it up and had to spend two weeks fixing their code that some how still depended on 16=bit structure alignment. I assume Sun fixed their code when the Sparc arrived. Brantley