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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ae395e5c11de7bc9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 19 Mar 2010 07:00:41 -0500 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: segfault with large-ish array with GNAT Date: Fri, 19 Mar 2010 12:04:36 +0000 Reply-To: brian@shapes.demon.co.uk Message-ID: <12q6q5hjqihq8lpgpt9mjmn30l9q9lrmkm@4ax.com> References: <642ddf8b-1d45-4f74-83ad-2c755040ca33@k24g2000pro.googlegroups.com> <4ba13454$0$6720$9b4e6d93@newsspool2.arcor-online.net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-gvzvpWe8EqFrKa3LEgWOKfqGDGS11iBQTKqOGrFN5mckNFy/gSbkxYWlMIFXfIJC4MId0cAJp3fjbjz!PQ0bnlO0eZdwSIZ7Mcja51W8gbImrVjI4cl3D1v/Zxk8bl9sVR0Z4jA58+ktJjBJ6SfrUIP7lAeL!EUBJ X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Xref: g2news1.google.com comp.lang.ada:9664 Date: 2010-03-19T12:04:36+00:00 List-Id: On Wed, 17 Mar 2010 23:45:25 -0700 (PDT), Jerry wrote: >But it seems that I will have to allocate memory for large objects >using pointers (and thus take the memory from the heap). Is that >right? I believe so. But code using the array can be written as normal, with a "my_array ... renames my_array_ptr.all" clause to hide the pointer. - Brian