PRX Max Memory (Question...?)

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

Moderators: cheriff, TyRaNiD

Post Reply
ADePSP
Posts: 58
Joined: Thu Jul 13, 2006 9:07 pm

PRX Max Memory (Question...?)

Post by ADePSP »

Does anyone know how much memory you have to play around with when running a PRX and where it gets allocated from...
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

the MAX prx size depends on how much you allocated
for the prx HEAP of the available RAM left over from
your app ...so if you have 24MB of RAM to work with
and your app / prx loader is 2MB then you have 22MB
left over for prx allocation of HEAP ...so if you allocate
18MB for prx HEAP then you have 4MB left over in RAM
for another prx for example to allocate its HEAP with that
little bit left ...so there is no such thing as a MAX prx memory

there is only such a thing as how much available is left in RAM
for you to allocate for that prx

of course the app / prx loader has its own HEAP so keep that
in mind

another example:

28MB available RAM
ELF HEAP 8MB allocated ....RAM is now ~20MB
PRX_A HEAP 16MB allocated ....RAM is now ~4MB
PRX_B HEAP 2MB allocated ....RAM is now ~2MB
PRX_C HEAP 1024KB allocated ...RAM is now <1024KB

hope you get the idea
cheers
10011011 00101010 11010111 10001001 10111010
Post Reply