Intel Interview Question
Systems Design EngineersCountry: United States
In Relative addressing mode, offset is mentioned in the instruction. In high level language, if else while generates jump instruction and they are relatively small in size. So, offset tends to be small and may fit is same page in some case. So, it is faster. In absolute address, processor needs to calculate relative distance which cause extra cycle.
Moreover, relative addressing allows position independent code, absolute addressing not.
In Relative addressing mode, offset is mentioned in the instruction. In high level language, if else while generates jump instruction and they are relatively small in size. So, offset tends to be small and may fit is same page in some case. So, it is faster. In absolute address, processor needs to calculate relative distance which cause extra cycle.
Moreover, relative addressing allows position independent code, absolute addressing not.
i think absolute addressing mode because it does not need any addition for address calculation.
- avanee000 September 29, 2013