For example, if I compile this in Java in Eclipse
intvar = (int)(((var1 * var3))*(7));
the compiler will clear it before
intvar = (int) var1 * var3 * 7;
and then the compiler will do everything possible to turn it into machine code and stuff.
Or do I need to do something special for the compiler to optimize the code?
Also, does this apply to all other languages that are compiled?
user3213315
source
share