P
P
Pantene7422019-10-08 12:27:36
C++ / C#
Pantene742, 2019-10-08 12:27:36

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?
dr_L4TrqRQaPT1f7hGEIrA.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2019-10-08
@Pantene742

Maybe, of course
https://www.google.com.ua/search?q=spectre+meltdown
And the percent has ring -2 and its own OS
https://www.zdnet.com/article/minix-intels-hidden- ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question