Windows Mobile 5And6The platform is built onCe5.x. When the available memory is small, the platform automatically closes the application.Program. Moreover, on this mobile platform, you can only run32ItemsProcess. On the desktop, we have4 GBBy default, each application has2 GB. InWindows MobileOn the platform, each application only has32 MB.Windows Mobile/CEThe virtual memory management of the system is realized. The operating system uses the MMU of the microprocessor to process real-time conversion between virtual addresses and physical addresses. We can use tools to view the virtual address space on the mobile platform.
1.Dumpmem
This tool can be downloaded from the help and support sections of Microsoft. After the download, decompress the file and you can see that this project is usedEvc3To compile, because my machine is not installedMicrosoft Embedded Visual tools 3.0Therefore, only the compiled executable files are used. Because the simulator is based onArmSo you canArmrelFolderDumpmem.exeThis file. If it is based onX86OfCe PC, You can useX86relFile. Copy itStorageDirectory, run on the simulator, the effect is as follows:1As shown in:
Figure 1: DumpmemRun Interface
Select the application"Smsnotifer", Click"Create FileIn the root directory of the device.Dumpmem.txtFile, such2As shown in:
Figure 2: Dumpmem.txtDirectory
UseWord mobileAfter opening, you can find a lot of information, including the target platform and selected application information, such3As shown in:
Figure 3: Dumpmem.txtInformation contained
2. Windows Mobile Virtual Memory monster
Based on the aboveDumpmem,Windows Mobile Virtual Memory monsterA graphical representation of the image is provided. Red indicates null, blue indicates that the space is reserved, and Green indicates that the space has been allocated. The left and right keys on the device can be used to view differentSlotSuch4, ShowingSlot1 ~ 3:
Figure4:Slot1 ~ 3Memory usage
This example usesC ++InVs2005A project file compiled in the environment. If you have such requirements, please pay attention to them.
ReferenceArticle:
For Pocket PC 2002ViewDumpmemUtility
Slaying the virtual memory monster-Part I
Slaying the virtual memory monster-Part II
Visualizing the Windows Mobile Virtual Memory monster