2 ms·
Are instructions typically variable in the number of cycles it takes? If, as the article claims, pop is truly aliased to ldm, then I'd expect it to be very fas
by eximius 6y ago
Are instructions typically variable in the number of cycles it takes?
If, as the article claims, pop is truly aliased to ldm, then I'd expect it to be very fast.
- progval 6y agoThey are, this one takes from 2 to something like 20 cycles, depending on the number of registers, an whether the PC is one of them.
- lxgr 6y ago> Are instructions typically variable in the number of cycles it takes? Very much so, either due to memory latency or just inherent complexity. For example, a single division instruction can easily take the same time as ten adds.
- eximius 6y agoI meant variant for the same instruction. Is expect a divide to be slower than an add but I wasn't sure if a single instruction would have a range.
- grandmczeb 6y agoYes, even in very simple architectures instructions often take different numbers of cycles.