Re:A 1000-processor chip powered by an AA battery (2016)
by chmod775 on Tuesday February 16, 2021 @07:56AM
(#26153412)
> Optimization is not only rearranging instructions.
And not only finding parallelizable instructions either, I assume.
Thanks for the clarification, because such a proof would have surprised me a lot.
But even so, minimizing the program size is uncomputable as well. Given a Turing Machine M, create a program P(i) that simulates M for i steps and return true if the machine reaches an accepting state. If you provide an optimizing program OPT, then OPT(P) would be "return false;" if and only M does not halt. I.e. the optimizer would solve the halting problem which we know is not possible.