From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=BAYES_05,FORGED_GMAIL_RCVD, FREEMAIL_FROM,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Rod Kay Newsgroups: comp.lang.ada Subject: Re: Real_Arrays on heap with overloaded operators and clean syntax Date: Mon, 23 Jan 2023 18:31:25 +1100 Organization: A noiseless patient Spider Message-ID: References: <9c7cccd9-733f-49a8-b482-087ccb14b58dn@googlegroups.com> <2039b788-bbbd-4c8e-9785-4e45d4a2027en@googlegroups.com> <8a053ff6-ce49-454e-8304-9c2a25a665e8n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 23 Jan 2023 07:31:06 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="f2406f80d8a139156a3308bf3c4cc5d0"; logging-data="3713932"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sLIyHZhDdX6LuQoDMkar+VY/GYytkcgY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Cancel-Lock: sha1:Y0EmuaKq66gx8UPB7gy36Jm+fF0= Content-Language: en-US In-Reply-To: <8a053ff6-ce49-454e-8304-9c2a25a665e8n@googlegroups.com> Xref: reader01.eternal-september.org comp.lang.ada:64866 List-Id: >>>>> If you are on linux, then you could set the stack size with >>>>> >>>>> $ ulimit -s unlimited >>>>> $ launch_my_app >>>>> >>>>> >>>>> >>>>> Regards. >>>> On Windows 10 with mingw64? >>> >>> Not sure. I don't have a windows machine. >>> >>> What happens when try ? >>> >>> $ ulimit -a >> ulimit is available on cygwin. >> >> It is not available on mingw64 then ? > It is, but I am not sure if it works since -D400m -d400m together with ulimit were not able to solve the problem. So I thought that under windows 10 and mingw things related to stack size settings are not equivalent to Linux. I checked your repository. Looks good. We need some elegant solution, because sometimes it is not easy to predict the stack size that will be needed. Imagine you write a commercial application that is running from a GUI and the user loads a particular case from a file. The memory that will be needed may even exceed the available memory installed on the computer. There must be some elegant way to set the stack size globally. On the other hand storage pool seem that does not need deallocation. Isnt there any storage pool for stack based allocation so that you enjoy best of both worlds? Afraid I'm not familiar with '-D400m -d400m'. I did see a few examples on the net which seemed to set stack size as a linker parameter. My repository ? Which one ? Regards.