Douglas Muth on 7 Jan 2011 06:08:31 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] "You are not expected to understand this."


On Fri, Jan 7, 2011 at 8:36 AM, Chris Nehren
<c.nehren/plug@shadowcat.co.uk> wrote:
> At my talk at Central Wednesday night, I made an offhand reference to the above source code comment as present in V6 Unix, as part of the origins of the fork() call, and promised a link to the code. Here's that link: http://minnie.tuhs.org/cgi-bin/utree.pl?file=V6/usr/sys/ken/slp.c .
>
> Look in swtch() (classic K&R C here, get out your First Editions!) for the comment, and additionally look at newproc() and its comments for some insight into how it works. Really quite genius, and a testament to the engineering that went into early Unix.

I'll be the first to admit that that level of C code is a bit beyond
me. But I do appreciate the verbosity of the comments in that code.

That said, while we're talking about C code, here's a little craziness
about compiler bugs and the concept of trust:

http://cm.bell-labs.com/who/ken/trust.html

-- Doug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug