What is the difference between relative and physical addresses




















The final result is the physical address. Layer 3 deals with logical addresses and operates with IP addresses. In logical address in we hav different clesses ie.

Example : Physical address are the MAC Address ie. An IP Internet Protocol address. Log in. Intel and Study now. See Answer. Best Answer. A logical address is a reference to a memory location independent of the current assignment of data to memory; a translation must be made to a physical address before the memory access can be achieved.

Study guides. Q: What are the distinctions among logical relative and physical addresses? Write your answer Related questions. Distinctions among logical relative and physical addresses?

Are network layer address physical or logical? What is the difference between virtual logical and physical address spaces? Which protocols resolves logical addresses to physical addresses? Which OSI layer addresses data messages translates logical addresses into actual physical addresses and routes data to addresses on the networks? Physical address and logical address? Which layer translates between physical and logical addresses?

Difference between logical address and logical address space? This address is used as a reference to access the physical memory location by CPU. The hardware device called Memory-Management Unit is used for mapping logical address to its corresponding physical address.

Physical Address identifies a physical location of required data in a memory. The user never directly deals with the physical address but can access by its corresponding logical address. The user program generates the logical address and thinks that the program is running in this logical address but the program needs physical memory for its execution, therefore, the logical address must be mapped to the physical address by MMU before they are used.

The term Physical Address Space is used for all physical addresses corresponding to the logical addresses in a Logical address space. Attention reader! Skip to content. The logical address is a virtual address and can be viewed by the user. The logical address is used like a reference, to access the physical address. The fundamental difference between logical and physical address is that logical address is generated by CPU during a program execution whereas, the physical address refers to a location in the memory unit.

There are some other differences between the logical and physical address. Let us discuss them with the help of comparison chart shown below. Set of all physical addresses mapped to the corresponding logical addresses is referred as Physical Address. Visibility The user can view the logical address of a program.

The user can never view physical address of program Access The user uses the logical address to access the physical address. The user can not directly access physical address. The logical address is virtual as it does not exist physically. Otherwise the most common case the compiler generates relative addresses relative to the start of the part of the memory that the process gets. When executing a program the loader maps relative addresses into physical addresses.

During process execution, the interaction with memory is done through sequences of reading and writing into memory locations. The CPU either reads instructions or data from the memory or writes data into the memory. Within both of these tasks, the CPU does not use physical addresses but rather logical ones which the CPU generates itself.

The set of all logical addresses is called the Virtual Address Space. This is already confusing as it is. What's the difference between a logical and a relative address? Wherever else I look this up they're never separated. Here comes an even more confusing sentence:.

In case the address binding is done at the time of compilation and loading then the virtual address space matches the physical address space. Earlier on it is stated that address binding is the process of converting symbolic addresses into physical addresses.

But then only later on is the concept of relative addresses introduced. And loading is said to be the process of converting relative into physical. So now I'm completely lost here. Assuming that we have no knowledge of which part of the memory the process is going to take: how does the timeline go?

The program is compiled, the variable names symbolic addresses are translated into And furthermore, the terms relative and logical seem to be used randomly in the following sections of the book. As if they're the same, but still defined as different. Could anyone clarify this for me?



0コメント

  • 1000 / 1000