??? 01/17/05 13:59 Read: times |
#85092 - Poor, deluded hackers... Responding to: ???'s previous message |
Erik Malund said:
The main problem with some C programmers is that they seem to go for the prize won by the programmer that can squeeze most into one line. I think there are actually some 'C' programmers who (still) think that compacting the source code in some way compacts the generated code - the poor, deluded dears. As I've noted before: The IAR article, "Getting the Least Out of Your C Compiler" is well worth a read (it is not 8051-specific):
http://www.iar.com/FilesPubl..._Least.pdf The following is from the foreword: "Many established truths and tricks are invalidated when you use a modern compiler. We will demonstrate some of the more common mistakes and how to avoid them, and give a catalog of good coding techniques. The presentation will be illustrated by snippets of real-world code to demonstrate important concepts. An important conclusion is that code that is easy for a human to understand is usually also compiler friendly, contrary to hacker tradition." (my emphasis) |