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,19924f2facf8443 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Larger matrices References: <40ed91c2-3dab-4994-9a7b-4032058f0671@56g2000hsm.googlegroups.com> <4899b545$0$20713$9b4e6d93@newsspool4.arcor-online.net> <96f76821-fc2a-4ec1-83e7-b7b9a5be0520@r66g2000hsg.googlegroups.com> <9cabee20-877a-4fdc-80f8-7746879331da@8g2000hse.googlegroups.com> In-Reply-To: <9cabee20-877a-4fdc-80f8-7746879331da@8g2000hse.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1218048296 12.201.97.213 (Wed, 06 Aug 2008 18:44:56 GMT) NNTP-Posting-Date: Wed, 06 Aug 2008 18:44:56 GMT Organization: AT&T ASP.att.net Date: Wed, 06 Aug 2008 18:44:56 GMT Xref: g2news1.google.com comp.lang.ada:1471 Date: 2008-08-06T18:44:56+00:00 List-Id: amado.alves@gmail.com wrote: > It's a Storage_Error with the message "stack overflow detected". > > My program does not use the stack, so probably the multiplication is > implemented as a function with parameters passed on the stack and this > overflows, like it does if I trie to create the large arrays as static > objects. Probably the operation declares a result object on the stack, which causes the stack overflow. GNAT is pretty good about not passing large objects by copy. You may need to create your own operations that use the heap rather than the stack. -- Jeff Carter "Sheriff murdered, crops burned, stores looted, people stampeded, and cattle raped." Blazing Saddles 35