🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #963

Re: How do I set the stack size for a Mach-O application ?

#963
From: Paul Russell
Date: Thu, 20 Jun 2002 00:30
24 lines
2059 bytes
Paul Russell wrote:
> 
> 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 ?...
> 

I found a partial solution to this on the cocoa-dev mailing list.

If I run my app from a terminal window and do something like:

% limit stacksize 2048

beforehand, then it runs fine.

However I'd still like to be able to launch and debug my app from
CodeWarrior and these doesn't seem to be any way to do this...

Paul
Technical Details
Message-ID: <3D11220B.33D94110@arc-software.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.kjsl.com!feed.news.sonic.net!typhoon.sonic.net!not-for-mail
References: <3D110CDE.4AFEFFA@arc-software.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,d9e54b1e4c04379c
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,d9e54b1e4c04379c
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2002-06-19 17:35:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.kjsl.com!feed.news.sonic.net!typhoon.sonic.net!not-for-mail
Message-ID: <3D11220B.33D94110@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: Re: How do I set the stack size for a Mach-O application ?
References: <3D110CDE.4AFEFFA@arc-software.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 24
Date: Thu, 20 Jun 2002 00:30:02 GMT
NNTP-Posting-Host: 192.146.1.254
X-Complaints-To: abuse@sonic.net
X-Trace: typhoon.sonic.net 1024533002 192.146.1.254 (Wed, 19 Jun 2002 17:30:02 PDT)
NNTP-Posting-Date: Wed, 19 Jun 2002 17:30:02 PDT