PSP Stack Size?

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

Moderators: cheriff, TyRaNiD

Post Reply
HexDump
Posts: 70
Joined: Tue Jun 07, 2005 9:18 pm

PSP Stack Size?

Post by HexDump »

Hi,

Is there any limit in stack usage for the psp? I mean, size of data I can allocate in stack has to be of a determinated size?.

HexDump.
PspPet
Posts: 210
Joined: Wed Mar 30, 2005 2:13 am
Contact:

Post by PspPet »

> Is there any limit in stack usage for the psp?
Each thread has their own stack.
See "PSP_MAINTHREAD_STACK_SIZE_KB" in the PSPSDK. This lets you change the stack size for the main thread (started by the startup/runtime). Default looks to be a whopping 256KB in size.

For your own threads you start, you can specify the initial stack size (see "sceKernelCreateThread")
HexDump
Posts: 70
Joined: Tue Jun 07, 2005 9:18 pm

Post by HexDump »

Thanks a lot man.


HexDump.
Post Reply