×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    63

    Free RAM and Free User Memory

    I read this in the "Device Specification" from Forum Nokia. The URL is http://www.forum.nokia.com/main/1,6566,015,00.html.

    For 7650:
    * Heap Size -> Free RAM, up to 1.4 MB
    * Shared Memory for Storage -> Free user memory, up to 4 MB

    For 3650:
    * Heap Size -> Free RAM, up to 1.4 MB
    * Shared Memory for Storage -> Free user memory, up to 3.4 MB+MMC

    Questions:
    1. Is heap size (Free RAM) only available during program execution?

    2. What is "Free User Memory"?

    3. Assuming I have a MMC of 64MB installed in 3650, does it mean that the total size of all executables I can installed in 3650 is sum of (3.4MB + 64MB)?

    4. And for 7650, total size of all executables in the device is only 4MB?

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    371
    Hello,

    1. The memory for running processes (programs) is allocated from the heap memory.

    2. User memory is the place for storing data like a hard disk on your PC.

    3. Yes, but of course image, sound, message and other kind of files share the same space.

    4. Same as previous

    Best Regards,
    Marko / Forum Nokia

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    40
    I would like to ask,
    how could i find out the heap usage when the program is running? ( both the case of emulator and real device).

    Thanks.

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    371
    Hi,

    You can implement a simple application, which uses following code lines to determine the free RAM:

    TMemoryInfoV1Buf info;
    UserHal::MemoryInfo(info);
    TInt freeMemory = info().iFreeRamInBytes;

    Notice that available RAM in emulator is modifiable. It can be changed in "...\epoc32\data\epoc.ini".

    Br,
    Marko / Forum Nokia

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    40
    Really Thanks!!

  6. #6
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Munich, Germany
    Posts
    76

    Free stack space?

    Hi,

    is it possible to get the free stack space?

    BTW: I used HAL::Get(HALData::EMemoryRAMFree,val) for free memory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×