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: a07f3367d7,aa14979d20ba3045 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Allocation question Date: Tue, 12 May 2009 01:09:08 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <4a07fc7a$0$2855$ba620e4c@news.skynet.be> NNTP-Posting-Host: jsj6/wjO/cHSAHkcGxcp1Q.user.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.7.9 X-Newsreader: Tom's custom newsreader Cancel-Lock: sha1:vMI7R7vWav6dm1mZEEFiI4XjTUw= Xref: g2news2.google.com comp.lang.ada:5774 Date: 2009-05-12T01:09:08+00:00 List-Id: > Image : Image_T(1..100, 1..100); > ... > This program seems to work. > However when I increase the size of Image, I get a Segmentation fault. > > Should I need to play with access type and allocation stuff ? Using Janus Ada 95 on a 2GB W2k system, I can run with Image : Image_T(1..10_000, 1..10_000); by putting a size option on the link command. That's 1.2 GB and I do need to leave some room for Windows etc. It also takes a noticeable time to run. What about Gnat for 64 bit Windows with large RAM? Also, IIRC you can make a separate task and use 'Storage_Size and get a large stack that way.