CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Relative mode of addressing is most relevant to writing _______________.

A
Coroutine
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Position independent code
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Sharable code
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Interrupt handler
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Position independent code

Relative mode of addressing is most relevant to writing position independent code.

Position-independent code:-

Position-independent code(PIC) is a body of machine code that, being placed somewhere in the primary memory, executes properly regardless of its absolute address. PIC is commonly used for shared libraries, so that the same library code can be loaded in a location in each program address space where it will not overlap any other uses of memory.

Addressing modes:-

Addressing modesare an aspect of the instruction set architecture in most central processing unit (CPU) designs. The various addressing modes that are defined in a given instruction set architecture define how machine language instructions in that architecture identify the operand of each instruction. An addressing mode specifies how to calculate the effective memory address of an operand by using information held in registers and constants contained within a machine instruction.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Computers in Accounting
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon