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, LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a59c0afeb6808e51 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-03 02:01:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!aotearoa.belnet.be!news.belnet.be!newsfeed.stueberl.de!news-FFM2.ecrc.net!news.cesnet.cz!crax.cesnet.cz!news.felk.cvut.cz!not-for-mail From: "Sergey Koshcheyev" Newsgroups: comp.lang.ada Subject: Re: Howto debug seg-faulting Ada 95 code? Date: Tue, 3 Sep 2002 10:51:57 +0200 Organization: Czech Technical University Message-ID: References: <1f358d66.0208302358.6f1c6a39@posting.google.com> <87y9an5tt2.fsf@deneb.enyo.de> <1f358d66.0209020705.6769d948@posting.google.com> NNTP-Posting-Host: m232.dkm.cz X-Trace: ns.felk.cvut.cz 1031043119 51636 62.24.78.232 (3 Sep 2002 08:51:59 GMT) X-Complaints-To: usenet@ns.felk.cvut.cz NNTP-Posting-Date: Tue, 3 Sep 2002 08:51:59 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:28687 Date: 2002-09-03T10:51:57+02:00 List-Id: "Jeffrey Creem" wrote in message news:FhMc9.91102$kp.733909@rwcrnsc52.ops.asp.att.net... > Either use new or declare the variable at the library level (in a package) > to make it > go on the heap. I would say that x86 compilers place library-level data in data sections, initialized or unininitialized. This is the best place for them, and data sections aren't stack nor heap, they're something else :-) I don't know about other architectures, but I suspect the placement of global data is similar there. Sergey.