Thursday, April 28, 2011

Why C/C++ does not defined expression evaluation order?

As you may know C/C++ does not specified expression evaluation order. What are the reasons to left them undefined.

From stackoverflow
  • It allows compiler optimizations. One example would be the reordering of arithmetic instructions for the maximum usage of the ALUs or hiding memory latency with calculations.

0 comments:

Post a Comment