Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linear address and physical address

What is linear address? How is it different from physical address?

like image 590
Shweta Avatar asked Nov 17 '10 08:11

Shweta


People also ask

What is linear address and 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 .

What are linear addresses?

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.

What is linear address logical address and physical address of 80386?

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.

What is the difference between logical address and physical 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.


2 Answers

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

like image 144
Sankar Ganesh PMP Avatar answered Oct 12 '22 23:10

Sankar Ganesh PMP


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.

like image 45
Melandru's Square Avatar answered Oct 12 '22 22:10

Melandru's Square