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,FREEMAIL_FROM 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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: gnatmake myProg.adb -largs -Wl,-stack_size -Wl,0x4000000 Date: Thu, 09 Mar 2006 13:25:44 +0100 Message-ID: <44101EC8.5010108@mailinator.com> References: <1141903048.577295.88950@v46g2000cwv.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net zU2E2IKsTToLo5h4vJj0Iwj5o9TYYzxebmMQvTD8C2Iiqwd8c= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en In-Reply-To: <1141903048.577295.88950@v46g2000cwv.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:3305 Date: 2006-03-09T13:25:44+01:00 List-Id: stuart clark wrote: > I was wondering iof anyone could enlighten me on this gnatmake call. > > i found it on a Mac OS/X site. > > i've searched else for setting the stack_size for a main rather than > for individual tasks. > > any advice appreciated. I'm not sure if you can control the stack size of the main task. When needed, the advice I've seen is to have a dummy (empty) main procedure and put all computation in a regular task, where you can use pragma Stack_Size. Though this can be a problem if you're using a runtime without tasking or some other similar restrictions, I guess... This is in the Ada side of things. The linker argument is the operating system counterpart, and I don't know the fine interactions between the two.