From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 3 May 2007 19:12:28 -0700 From: Lyndon Nerenberg To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] speaking of kenc In-Reply-To: <1178244537.16650.1835.camel@work.sfbay.sun.com> Message-ID: <20070503191149.G22416@orthanc.ca> References: <7560b2245493f07219455a36984c983f@coraid.com> <1178244537.16650.1835.camel@work.sfbay.sun.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Topicbox-Message-UUID: 587ffb74-ead2-11e9-9d60-3106f5b1d025 > As far as I can tell C (as in language) has always been a sort of > a cross-paltform assembler. Its just sometimes you need hooks > to the native one. You might disagree -- but I still do code in > assembly. That's called as(1). --lyndon I think 3B2 code deserves its own place in hell. Poring over the ESS#5 code, someone found that there were lots of strcmp(p, "f(") == 0 checks (I may have gotten the exact string wrong but it's close). It took us a while to figure out why. Apparently, location 0 on the 3b had the 3 bytes 'f' '(' '\0', someone noticed that when programs blew up they were pointing to "f(", and the worlds most amazing kludge for detecting nil pointers was born. -- Dave Presotto