* [9fans] how do you determine stacksize? @ 2003-11-07 23:52 Fco.J.Ballesteros 2003-11-10 12:14 ` David Presotto 0 siblings, 1 reply; 4+ messages in thread From: Fco.J.Ballesteros @ 2003-11-07 23:52 UTC (permalink / raw) To: 9fans The subject says almost it all. How do you guys choose your values for stack size in thread(2) programs? I'm doing it almost at ramdom, but there must be a better way. thanks ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] how do you determine stacksize? 2003-11-07 23:52 [9fans] how do you determine stacksize? Fco.J.Ballesteros @ 2003-11-10 12:14 ` David Presotto 2003-11-10 14:20 ` rog 0 siblings, 1 reply; 4+ messages in thread From: David Presotto @ 2003-11-10 12:14 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 113 bytes --] I try to keep stuff off the stack so 4k is always fine for me. It is a pretty sad thing to have to guess though. [-- Attachment #2: Type: message/rfc822, Size: 1857 bytes --] From: Fco.J.Ballesteros <nemo@plan9.escet.urjc.es> To: 9fans@cse.psu.edu Subject: [9fans] how do you determine stacksize? Date: Sat, 8 Nov 2003 00:52:08 +0100 Message-ID: <7518243bb8cd836e5c2a8c451b3b88a1@plan9.escet.urjc.es> The subject says almost it all. How do you guys choose your values for stack size in thread(2) programs? I'm doing it almost at ramdom, but there must be a better way. thanks ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] how do you determine stacksize? 2003-11-10 12:14 ` David Presotto @ 2003-11-10 14:20 ` rog 2003-11-10 14:24 ` Sape Mullender 0 siblings, 1 reply; 4+ messages in thread From: rog @ 2003-11-10 14:20 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 111 bytes --] i'd have thought the linker would be in a good position to make a good assessment of the stack requirements. [-- Attachment #2: Type: message/rfc822, Size: 4195 bytes --] [-- Attachment #2.1.1: Type: text/plain, Size: 113 bytes --] I try to keep stuff off the stack so 4k is always fine for me. It is a pretty sad thing to have to guess though. [-- Attachment #2.1.2: Type: message/rfc822, Size: 1857 bytes --] From: Fco.J.Ballesteros <nemo@plan9.escet.urjc.es> To: 9fans@cse.psu.edu Subject: [9fans] how do you determine stacksize? Date: Sat, 8 Nov 2003 00:52:08 +0100 Message-ID: <7518243bb8cd836e5c2a8c451b3b88a1@plan9.escet.urjc.es> The subject says almost it all. How do you guys choose your values for stack size in thread(2) programs? I'm doing it almost at ramdom, but there must be a better way. thanks ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] how do you determine stacksize? 2003-11-10 14:20 ` rog @ 2003-11-10 14:24 ` Sape Mullender 0 siblings, 0 replies; 4+ messages in thread From: Sape Mullender @ 2003-11-10 14:24 UTC (permalink / raw) To: 9fans > i'd have thought the linker would be in a good position > to make a good assessment of the stack requirements. Maybe, but recursive programs will have unpredictable calling depths. If you don't use local arrays, 4K is almost always enough. Sape ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-11-10 14:24 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-11-07 23:52 [9fans] how do you determine stacksize? Fco.J.Ballesteros 2003-11-10 12:14 ` David Presotto 2003-11-10 14:20 ` rog 2003-11-10 14:24 ` Sape Mullender
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).