??? 05/25/12 15:44 Read: times |
#187524 - you can do both Responding to: ???'s previous message |
I normally don't try to help the compiler.
I try to help other developers reading and understanding the code. Today helping is not quite as important as it was when memory cost money, but I remember two things from when I saved $0.82 per each of 860.000 units by hand optimizing to one memroy size less. while(1) and for (;;;) creted diferent code if ( a && !b && !c) created code different from if (a) { if b break; if c break; neither of the above made the code less readable. I would agree that obfusciating code to help the compiler is a VERY bad idea. I really do not know which of my "routine compiler helpers" still make a difference (and have forgotten which are "compiler helpers and which are "style") but since none are obfusciating the code I have no concern. Erik |