Answer the question
In order to leave comments, you need to log in
Can a processor change the order of instructions in a program?
I’m reading an article on Habré and then I ran into strange lines, the
author is an engineer from Mozilla (the author of the original), he checked and wrote the same thing in English. About what ->
In order to use system resources efficiently, many compilers and processors change the order in which operations are performed.As for compilers, I'll believe, but here's the processor ??? as ??? maximum "processor" of the virtual machine, since it can parse the byte code before executing and translating its parts into processor instructions on the fly. But is it possible for the hardware to analyze the program and decide: "oh, let me execute this and that instruction in the next cycle, since part of the circuit will be idle if I do everything in order." (You need to make a million instructions for analysis !!!!) Or is it implemented somehow differently?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question