What is linear address? How is it different from physical address?
linear address : What appear to a isolated program a long string of memory which start with address 0. all the segment of that program will be addressed from its linear address. It may be in the ram or in the disk. physical address : Address that appear in the ram or main memory pins .
A memory addressing scheme used in processors where the whole memory can be accessed using a single address that fits in a single register or instruction.
The 80386 transforms logical addresses (i.e., addresses as viewed by programmers) into physical address (i.e., actual addresses in physical memory) in two steps: Segment translation, in which a logical address (consisting of a segment selector and segment offset) are converted to a linear address.
The basic difference between Logical and physical address is that Logical address is generated by CPU in perspective of a program whereas the physical address is a location that exists in the memory unit.
Linear address is generated after before page
table mapping. Physical addres is
generated before after page table mapping(ie
paging).
Linear Adress,created by adding logical address to the base of segment, CS,DS,ES,SS,FSor GS.
When Paging is enabled, the page tables are used to translate linear address to physical address.
On the Other Hand, Physical Address is nothing but, the address value that appears on pins of processor during a memory read/memory write operations.
InShort, we can say if paging is disabled linear address = physical address
The Linear Address is the virtual Address; the address a process uses (pre-translated). The physical address is the post-translated address, its an address of some page in physical memory.
Note that Sankar's answer
Linear address is generated after page table mapping. Physical addres is generated before page table mapping(ie paging).
is was wrong, he has had these backwards (fixed now). The Linear Address is before the page table mapping, and the physical address is the address that comes from the page table mapping.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With