| View previous topic :: View next topic |
| Author |
Message |
pegasus2000
Joined: 12 Jul 2006 Posts: 160
|
Posted: Sat Sep 06, 2008 8:36 am Post subject: An info please |
|
|
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 ? |
|
| Back to top |
|
 |
Allelujah
Joined: 16 Jul 2008 Posts: 10
|
Posted: Sat Sep 06, 2008 11:14 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Noko
Joined: 06 Sep 2008 Posts: 23
|
Posted: Sat Sep 06, 2008 10:22 pm Post subject: |
|
|
| Try mallocing 32MB, then 31MB, then 30 MB, until malloc succeeds. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sat Sep 06, 2008 10:50 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
pegasus2000
Joined: 12 Jul 2006 Posts: 160
|
Posted: Sat Sep 06, 2008 10:53 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|