Article View: comp.sys.mac.programmer.codewarrior
Article #975How do I set the stack size for a Mach-O application ?
From: Paul Russell
Date: Wed, 19 Jun 2002 22:59
Date: Wed, 19 Jun 2002 22:59
10 lines
1752 bytes
1752 bytes
I'm porting some Carbon CFM to Carbon Mach-O (so that I can link in some gcc-style assembler), and one problem I have hit is that there doesn't seem to be any way to set the stack size for a Mach-O executable. I know that I need about 2 Mb of stack and sure enough my Mach-O app crashes on entry to one of the routines that uses a lot of stack space, so I'm guessing that the default Mach-O stack size is probably quite small. Do I have to do something arcane like create a linker control file or some such nastiness ?... Paul
Technical Details
Message-ID:
<3D110CDE.4AFEFFA@arc-software.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!feed.news.sonic.net!typhoon.sonic.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,d9e54b1e4c04379c,start X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,d9e54b1e4c04379c,start X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2002-06-19 16:00:18 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!feed.news.sonic.net!typhoon.sonic.net!not-for-mail Message-ID: <3D110CDE.4AFEFFA@arc-software.com> From: Paul Russell <prussell@arc-software.com> Reply-To: prussell@arc-software.com Organization: Coastal Software X-Mailer: Mozilla 4.76 (Macintosh; U; PPC) X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: How do I set the stack size for a Mach-O application ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 10 Date: Wed, 19 Jun 2002 22:59:42 GMT NNTP-Posting-Host: 192.146.1.254 X-Complaints-To: abuse@sonic.net X-Trace: typhoon.sonic.net 1024527582 192.146.1.254 (Wed, 19 Jun 2002 15:59:42 PDT) NNTP-Posting-Date: Wed, 19 Jun 2002 15:59:42 PDT