From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <775b8d190603072010v282cd1afl8677895d3407d914@mail.gmail.com> Date: Wed, 8 Mar 2006 15:10:14 +1100 From: "Bruce Ellis" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] structure allocation. In-Reply-To: <225d545abee6717eec8ffe272836f235@collyer.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <440E3FBE.20209@lanl.gov> <225d545abee6717eec8ffe272836f235@collyer.net> Topicbox-Message-UUID: 0e6c2144-ead1-11e9-9d60-3106f5b1d025 i still like hjdicks it is obscure enough that no-one would think it's a feature (or guess it). it was required because we had a large slab of 3rd-party code that assumed it could read packets off the wire (assuming correct endian) and do no marshaling. #pragam pack looks like a feature. i was there when it happened (after a nice italian meal). ken asked "Do i really have to do this?" P: Yes, there's buckets of code that rely on it. K: *some expression of disbelief* P: well hj are just dicks done deal it also turned out to be important for inferno on machines with greater than 32 bit alignment requirements. the 64 bit mips is an example. took but a recompile with hjdicks in the right place (it takes an optional alignment parameter). same with the ps2 which has 128 bit issues. thanks for telling me that it has been changed. brucee On 3/8/06, geoff@collyer.net wrote: > I was implicitly referring to C compilers. Heck, Pascal had packed > data in the early 1970s, possibly even the late 1960s.