From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sat, 26 Mar 2005 15:43:45 -0500 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] compilers In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: Topicbox-Message-UUID: 2cd25a6e-ead0-11e9-9d60-3106f5b1d025 > The compilers share a bit of code through copy-paste. I was wondering > if there are any important changes in recent years that were made > in a popularly used compiler (ie. 8[cal]) that might benefit other > compilers (ie. k[cal])? We do try to make the changes in all the compilers when the changes are general, though that's no guarantee that things haven't slipped through. > Also, is there any documentation out there other than "How to > Use the Plan 9 C Compiler" and "Plan 9 C Compilers" that cover > the compilers? I've been perusing the code and some of the > code takes quite a while to figure out. Some quick notes would > go a long way (ie. "this function is a recursive tree walk that > checks types and inserts casts"). A more detailed implementation document for any one of the compilers is yet to be written. More seriously, I found that matching the text in section 5 of /sys/doc/compiler.ps against the compiler code was quite informative. It would be great if there were better documentation. Russ