Compiler optimizations for math

Will the compiler optimize

x = y + (100*3/5) into x = y + 60; or will it execute the 10 * 3 / 5 for each computation?

I found this"presidence table.

It says the operation will be left to right in the parentheses. And it will be done once by the compiler.


Hopefully the compiler was programmed to follow the order of precedence.

Thanks for the answer. I could not google anything conclusive. I like to include the full formula in the equations in the program to remind of how it works. But if was going to cost memory or cycles then I would just do the math myself. I do understand the compiler can only optimize that portion (portions) independent of the variable.