An info please

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
pegasus2000
Posts: 160
Joined: Wed Jul 12, 2006 7:09 am

An info please

Post by pegasus2000 »

How many big is the free memory ram when a program is started on PSP FAT ?
CFW 3.71 M33-4.

I mean: the memory ram would be lesser than 32 Mb: a part of it is occupied by programs, data and prx. Do you have an indicative value ?
Allelujah
Posts: 10
Joined: Wed Jul 16, 2008 4:26 pm

Post by Allelujah »

You might also want to try meminfo function from PSPLINK, It shows detailed information on every partition of PSP's memory like base, size, totalfree & maxfree.
Noko
Posts: 23
Joined: Sat Sep 06, 2008 8:35 pm

Post by Noko »

Try mallocing 32MB, then 31MB, then 30 MB, until malloc succeeds.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

There is 24MB free in the user memory partition. When you start your application, its code will be loaded into this. So if your program code is 1MB, you will have 23MB of user memory left. You can allocate from this space.

The remaining 8MB partition is kernel memory. You *can* load some small stuff here (most of it will be occupied by the kernel).

On the Slim PSP you can use the regular 24MB user memory as well as the extra 32MB as if it was user memory.
pegasus2000
Posts: 160
Joined: Wed Jul 12, 2006 7:09 am

Post by pegasus2000 »

Torch wrote:There is 24MB free in the user memory partition. When you start your application, its code will be loaded into this. So if your program code is 1MB, you will have 23MB of user memory left. You can allocate from this space.

The remaining 8MB partition is kernel memory. You *can* load some small stuff here (most of it will be occupied by the kernel).

On the Slim PSP you can use the regular 24MB user memory as well as the extra 32MB as if it was user memory.
Thanks Torch. I'm checking the data memory of nd, and the system reported a value similar to 24 Mb when the Hello world starts. So, I had to verify if it was the normal behaviour.
Post Reply