首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Symbian英文资料 >> Tools SDK >> 正文
How to define the memory configuration of the Symbian WINS emulator
作者:佚名    文章来源:不详    更新时间:2006-5-7 11:23:43

With the multiplication of Symbian devices, more and more different configurations reach the market. As it is most of the time for an individual or a small company to test its software on all real devices, it is important to be able to simulate each particular device with as much accuracy as possible.

An important file for configuring the emulator is the epoc.ini file located in %EPOCROOT%\epoc32\data\.

We will see here how to configure the disk drives and the total RAM memory that the emulator uses.

Drives configuration

The emulator maps the Symbian platform file system onto the PC’s file system. Two drives: C: (the flash file system on NS60 devices) and Z: (the device ROM) are created by default.

The default location for these drives is:
C: = %EPOCROOT%\epoc32\wins\c
Z: = %EPOCROOT%\epoc32\data\z + %EPOCROOT%\epoc32\release\wins\udeb\z

This setting can be overriden and new drives can be added by editing the epoc.ini file. A line shall be added for each extra drive:


_EPOC_DRIVE_<drive letter> <location>

Here is my default setting to simulate a mobile with a MMC card :


_EPOC_DRIVE_D c:\symbian\6.1\Series60\epoc32\wins\d
_EPOC_DRIVE_E c:\symbian\6.1\Series60\epoc32\wins\e

Another interesting setting could be to redirect the MMC drive to the PC floppy disk. You will then be able to simulate the presence or not of the MMC without reconfiguring the emulator:


_EPOC_DRIVE_D c:\symbian\6.1\Series60\epoc32\wins\d
_EPOC_DRIVE_E a:

RAM Configuration

The epoc.ini file can also be used to define how much RAM memory our simulated device has. This is achieved by using the MegabytesOfFreeMemory keyword:


// extract from epoc.ini
// simulate a device with 16MB memory,
// (considering that the system requires 1MB RAM to run)
MegabytesOfFreeMemory 15

The default value in the NS60 SDK (1.x and 2.0) is 16. If the line is missing in the ini file, the emulator will run with its default 64MB value.



Note: user of the Coderarrior environment may have to replace WINS by WINSCW in the above exemples.
相关文章:
How to reset/reformat a phone
Display the extended panic code in Emulator or Device
How to let a DLL know which application uses it
On Target debugging with Series 60 devices
How to speed up the Symbian Emulator
How to dump DLL exports using LIB files
On Target Debugging using BlueTooth
Changing the COM port to access the Internet
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号