Re: How to write elegant C coding (certainly OT)
From: Adrian von Bidder
Date: Wed Jan 05 2005 - 10:37:29 EST
On Wednesday 05 January 2005 09.14, Al Viro wrote:
> On Wed, Jan 05, 2005 at 03:49:07PM +0800, Coywolf Qi Hunt wrote:
> > I'd say better to study compile theory and a kind of compiler source
> > code.
>
> Yes, gcc source definitely makes a great cautionary tale about the need
> of writing elegant code and dreadful results of not doing so.
LOL
I specifically recommend the ARM backend. It was copied from some other
RISC target, then a ARM thumb (16bit instruction width) backend was split
from that, and finally the thumb and 32bit backends were merged again,
apparently without removing much of the duplicated code.
Fun.
-- vbi
--
featured link: http://fortytwo.ch/gpg/subkeys
Attachment:
pgp00000.pgp
Description: PGP signature