Mill Computing, Inc. › Forums › The Mill › Architecture › Belt saturation in short belts › Reply To: Belt saturation in short belts
Noit, reordering to mix foo() and bar() calls would be a no brainer in a strictly functional programming language. In that case reworking the code to
return bar(foo()) + ...
But in C a function may have side effects, and the order in which calls are made may impact the results. And so the compiler must issue the calls in the order given in the source code to insure correctness.