Home  >  Article  >  What is the process of converting a logical address into a physical address in memory called?

What is the process of converting a logical address into a physical address in memory called?

青灯夜游
青灯夜游Original
2022-07-14 14:52:269724browse

The process of converting a logical address into a physical memory address is called "relocation". The logical address issued by the program is not the actual storage location of the data or instructions, but this address can be converted to obtain the physical address of the actual storage location, which is equivalent to a relocation.

What is the process of converting a logical address into a physical address in memory called?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

The process of converting a logical address into a physical address in memory is called "relocation".

The address of the content generated by the central processing unit when the program is running is called a logical address. This address is also called a virtual address. When we talk about logical addresses, we are referring to the addresses that the CPU assigns to each process. The actual address a process is in memory is different from the address the process thinks it is at.

Whenever the CPU runs a process, it allocates a specific memory to that process. This allocated memory space is located at the logical address that the CPU generates for the process.

When generating a logical address, the CPU generates an address, and the program adds the base address to the address generated by the CPU to obtain the

逻辑地址 = 基地址 + CPU 生成地址

The physical address is where the process and its contents are placed in main memory or hard disk. The address is the actual address of the memory unit in the memory. This address cannot be accessed or viewed directly by the user program, so the logical address needs to be mapped to this address so that it can be accessed with the help of a pointer that shows the location rather than the code

And the logical address issued by the program is not for data or instructions The real storage location, but this address can be converted to obtain the physical address of the real storage location, which is equivalent to a relocation.

What is the process of converting a logical address into a physical address in memory called?
(MMU is a memory management unit)

Simple understanding:

The logical address is a relative address, such as 1G Allocate 1M space in the memory. The first byte in this 1M space is even the logical address

. Starting from 100M of 1G memory, 1M space is allocated. At this time, the first byte of 101M, This refers to the physical address.

Another example: There are four people who want to rent a house. The address of the house is No. XX, XX Street. This address is the actual address, which is the physical address. The landlord numbered these four houses 1 2 3 4. These four people usually talk about which room they live in. This is the logical address, but the actual address is still No. XX, XX Street.

Difference:

What is the process of converting a logical address into a physical address in memory called?

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What is the process of converting a logical address into a physical address in memory called?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn