From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,110290bc5dc4805d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: gnatmake myProg.adb -largs -Wl,-stack_size -Wl,0x4000000 Date: Thu, 09 Mar 2006 20:24:26 +0000 Organization: Pushface Message-ID: References: <1141903048.577295.88950@v46g2000cwv.googlegroups.com> <44101EC8.5010108@mailinator.com> <1141907480.223301.141500@j33g2000cwa.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1141935867 8169 62.49.19.209 (9 Mar 2006 20:24:27 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 9 Mar 2006 20:24:27 +0000 (UTC) Cancel-Lock: sha1:aAHG0GEklM1wm3fSyBvlIZCLMgo= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:3314 Date: 2006-03-09T20:24:26+00:00 List-Id: "stuart clark" writes: > Thanks i had thought of the BRUTE froce approach. > > i am still having trouble finding anythnig on this gnatmake -stack_size > option. this command i found on the Mac OS/X forum is the only place i > have seen it. > > Have you seen it before??? -largs is linker arguments, i am trying to > find -Wl, -stack_size... -Wl,xxx is an instruction to gcc to pass xxx to the underlying linker (ld). So gcc sees -Wl,-stack_size -Wl,0x4000000 and ld sees -stacksize 0x4000000 This is very likely MocOS-specific; here, 'man ld' says -stack_size value Specifies the size of the stack segment value, where value is a hexadecimal number rounded to the segment alignment. The default segment alignment is the target pagesize (currently, 1000 hexadecimal for the PowerPC and for i386). If -stack_addr is specified and -stack_size is not, a default stack size spe- cific for the architecture being linked will be used and its value printed as a warning message. This creates a segment named __UNIXSTACK . .....