??? 05/27/12 13:13 Read: times |
#187551 - obfusciating code to help the compiler is a VERY bad idea Responding to: ???'s previous message |
Erik Malund said:
I would agree that obfusciating code to help the compiler is a VERY bad idea. Absolutely! The compiler is just a tool; if it doesn't serve your purpose, then it's the wrong tool - change it! If you really find it necessary to be inspecting the generated code, and trying to tweak the source code to get "optimum" results then, surely, you should be writing (at least that part) in assembly anyhow?! As has already been discussed ad nauseam, trying to second-guess compiler code generation and, particularly, optimisation is a fool's errand... |