Architecture 01 Flashcards
What is the fetch execute cycle?
This is how a processor accesses and performs steps of a program.
- Load data from memory address in instruction pointer (ip)
- Adjust the ip to refer to the next instruction
- Control unit decodes data as an instruction
- Instruction is carried out (e.g by ALU)
- (Some instruction changes ip)
What is an Instruction Set Architecture?
An ISA is a set of operations the hardware recognises, where each operation is an instruction and on each iteration of a fetch-execute cycle a processor executes an instruction.
Past Paper Question: Give an advantage and disad- vantage of a long-lived ISA over generations of chip have over separate ISAs for each chip.
Advantage: Long-lived ISA’s have backwards compatibility and have been thoroughly tested and used
Disadvantage: The same interface must be used for each chip so not huge amounts of room for significant changes
Past Paper Question: Describe in words what this instruction does:
imulq $44, (%rbx), %rax
Get the signed integer 64 bit value stored at the memory address in register rbx, multiply it by 44, and put the result in register rax