| View previous topic :: View next topic |
| Author |
Message |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Wed May 20, 2009 3:21 am Post subject: Dynamic loading of prx functions |
|
|
| does a prx take up more space than the main prx for example a prx that holds functions for the main not all but some functions is it better to keep the functions in the main or add to the prx speaking space wise which takes up more space a funtion in a prx or one in a main eboot |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Wed May 20, 2009 11:24 pm Post subject: |
|
|
When the PRX is loaded it only takes up as much space as the filesize of the PRX. Even in an EBOOT only the filesize of data.psp (the PRX/ELF) inside it is used in memory.
If the PRX dynamically allocates memory using malloc or sce alloc functions then that only happens when that code is executed. And you can free the allocated space anyway. |
|
| Back to top |
|
 |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Thu May 21, 2009 1:16 am Post subject: |
|
|
cool thanks good to know
one more question?
how much memory does the psp have in kernel and in user i heard something about 32 mb |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu May 21, 2009 6:30 pm Post subject: |
|
|
| 8MiB in kernel, out of which you should have maybe a couple free at most. 24MiB for user all of which is free for your application. With M33 on the Slim and the large memory option in the makefile you should have 52MiB user on the Slim. |
|
| Back to top |
|
 |
|