Skip to contentSkip to conversation

How to write elegant C coding

DISCUSSION krishna 4 participants 4 messages Jan 5, 2005

lore
Share & tools
lore
#2 lore raw
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.

#3 lore raw

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