Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
February 08, 2012, 06:39:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Welcome to PSP-Programming.com
Home Help Search Shop Login Register
Digg This!
Pages: [1]
Print
Author Topic: Stack size  (Read 916 times)
znos
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11
541.78 points

View Inventory
Send Money to znos

View Profile
« on: March 14, 2010, 09:05:47 AM »

in the function sceKernelCreateThread(), what is the unit of the stack size? is it in kilobytes?

i've looked into the documentation and it wasn't specified in there..

and oh another question, how do i determine the right stack size for my thread?
Logged


mowglisanu

C/C++ Developer
Hero Member
*

Karma: +36/-11
Offline Offline

Posts: 787
0.00 points

View Inventory
Send Money to mowglisanu


View Profile
« Reply #1 on: March 14, 2010, 09:51:33 AM »

stack size is in bytes

stack size depends on what you want to do, 32k should be good enough, but if you scrunting for memory you could keep reducing the stack until it crashes to see how much is needed
Logged

Check out my:
 Audio lib
 Pmf Viewer
znos
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11
541.78 points

View Inventory
Send Money to znos

View Profile
« Reply #2 on: March 14, 2010, 03:40:15 PM »

thanks! so if i entered 0x400  to the stacksize, i get 1 KB? correct?
« Last Edit: March 14, 2010, 03:41:55 PM by znos » Logged
Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.155 seconds with 26 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com