Statement: the opinion in this article only represents an individual. text and images in this article may not be reproduced in part or in whole without your permission. The consequences of the violation will be borne by you! Contact me:80368704@qq.comQQ: 80368704 In this section, we will go further to the memory to learn about the specific working process of the memory.
After our computer is started, for ordinary users, the operating system must exist in the memory first. For example, if windows is started, the system enters the memory, the corresponding display must be in the Windows desktop status. This process is usually completed without intervention. You need to enter a Windows logon password at most.
After that, we will writeProgram, The compiler (such as TC2 or vc6) is to be started, that is Go to the memory, and the compiler interface will appear on the corresponding display. Complete the compiler's Start It's easy. Just click or double-click the TC2 or vc6 icon and they will enter the memory! Then, we compile program a in the compiler, and compile and link a successfully. Then run. Like windows and the compiler, a must first enter the memory before it can be run. For example, in TC2, the operation for running a is Ctrl + F9, and a enters the memory and is run at the same time. This process is very simple for common users. So, with the above concepts, let's further In-depth Memory, to see what will be found? We found that,Windows is in the area where the memory starts, followed by the compiler, followed by the program we wrote after the CompilerCodeAnd then the variables defined in our program.
Below. Let's take an example to illustrate the storage sequence of Windows systems, compilers, programs, and their variables in the memory. To make the description simple, in the following description, I will briefly describe windows and the compiler as windows !!!
In a simplified example below, assume that our memory has 6023 cells. Windows occupies 0 ~ 4999 of memory units, when the program code we write is run Release In 5000 ~ 5999, while the variable I in the program, one-dimensional array A, and two-dimensional array B, Arrangement After the code ~ 6001,6002 ~ 6007 and 6008 ~ In 6019, the specific program code and the overall memory diagram are as follows:
|