How to write elegant C coding
Thank you very much.
I'd say better to study compile theory and a kind of compiler source code.
Quoted 7 lines · krishna
Thank you very much.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 2 lines
Coywolf Qi Hunt Homepage http://sosdg.org/~coywolf/
Quoted 1 line · Coywolf Qi Hunt
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.
Re: How to write elegant C coding (certainly OT)
Quoted 6 lines · Al Viro
Quoted 2 lines · Coywolf Qi Hunt
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
Signature · 1 line
featured link: http://fortytwo.ch/gpg/subkeys