comp.lang.ada
 help / color / mirror / Atom feed
From: "Pat Rogers" <progers@classwide.com>
Subject: Re: Howto debug seg-faulting Ada 95 code?
Date: Mon, 02 Sep 2002 23:25:58 GMT
Date: 2002-09-02T23:25:58+00:00	[thread overview]
Message-ID: <asSc9.5091$Ss7.1261527110@newssvr30.news.prodigy.com> (raw)
In-Reply-To: RNRc9.336566$UU1.57839@sccrnsc03

"Jeffrey Creem" <jeff@thecreems.com> wrote in message
news:RNRc9.336566$UU1.57839@sccrnsc03...
>
> > "Jeffrey Creem" <jeff@thecreems.com> wrote in message
> > news:FhMc9.91102$kp.733909@rwcrnsc52.ops.asp.att.net...
> > <snip>
> > > Either use new or declare the variable at the library level (in
a
> > package)
> > > to make it go on the heap.
> >
> > What has a declaration at the library level have to do with the
heap?
> >
> >
>
> Techically nothing..I don't believe I have ever read anything in the
LRM
> that
> says for sure that if you declare a variable in a package it goes on
the
> heap but
> if you declare it in a procedure (including the mainline) it goes on
the
> stack. (See, now
> why did Robert have to go and leave...Where is Tucker Taft when you
need
> him)
>
> Having said that, every compiler I have used does something like
this.  It
> also tends to
> make intuitive sense.

Humm, every compiler I have used did not.  Declarations within library
units are just the first things pushed. We don't think of that initial
stack push as being a stack operation because it is never "popped"
until the program completes.





  reply	other threads:[~2002-09-02 23:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-31  7:58 Howto debug seg-faulting Ada 95 code? Karl Ran
2002-08-31  8:14 ` Florian Weimer
2002-09-02 15:05   ` Karl Ran
2002-09-02 16:25     ` Jeffrey Creem
2002-09-02 16:47       ` Pat Rogers
2002-09-02 22:40         ` Jeffrey Creem
2002-09-02 23:25           ` Pat Rogers [this message]
2002-09-03 11:20             ` Jeffrey Creem
2002-09-04 14:57               ` Pat Rogers
2002-09-03  8:51       ` Sergey Koshcheyev
2002-09-03 11:42         ` Samuel Tardieu
2002-09-07 18:50           ` Steven Deller
2002-09-02 21:35     ` Florian Weimer
2002-09-03  9:11       ` Karl Ran
2002-09-03  2:27 ` David C. Hoos, Sr.
2002-09-03  9:38   ` Karl Ran
2002-09-03 12:15     ` David C. Hoos, Sr.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox