From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu From: okamoto@granite.cias.osakafu-u.ac.jp MIME-Version: 1.0 Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] mainstacksize Date: Thu, 8 Aug 2002 17:05:57 +0900 Topicbox-Message-UUID: d8ea0906-eaca-11e9-9e20-41e7f4b1d025 Theradmain prepares 8 Kbytes stack area fot it, according to the manual. I have a program using threadmain, and from which a function having a 200x200 float array. I put this array to static memory, however, it requires more than 8 Kbytes threadmain's stack area. (When I use the array as local, it goes to more miserabble result.) Therefore, I enlarged the default value of the stack size of the threadmain to 30Kbytes, and now the function works more stablly. (I'm still debugging!) Why a farely large array put in a static/global field can be affected from the stack of the threadmain? What's the meaning of mainstacksize of thread library? Kenji