3 ms·
But you could have the "same" program break under different conditions, because you can have two different but equivalent programs. Consider the following pseu
by WorkLifeBalance 8y ago
But you could have the "same" program break under different conditions, because you can have two different but equivalent programs.
Consider the following pseudo code:
i <- 0;
total <- 0;
while(i < 10) {
total <- total + i
i <- i + 1 }
output total
This program could be done using a range of different instructions.
At the most naive it would actually use registers and jump and compare instructions to do the loop.
A different approach would do "loop unrolling" to avoid any jump instructions, instead applying sequentially the addition and comparisons.
The most aggressive approach would simply replace this whole program with
output 45
Without understanding the architecture and program preparation, what hope is there to map functionality to underlying behaviour at the transistor level?