forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dynamic loading of prx functions

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Wed May 20, 2009 3:21 am    Post subject: Dynamic loading of prx functions Reply with quote

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
View user's profile Send private message MSN Messenger
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Wed May 20, 2009 11:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Thu May 21, 2009 1:16 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu May 21, 2009 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group