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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3498dd887729ed19 X-Google-Attributes: gid103376,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: Garbage Collection in Ada Date: 1996/10/17 Message-ID: #1/1 X-Deja-AN: 189947818 references: <01bbb910$f1e73f60$829d6482@joy.ericsson.se> organization: The Mitre Corp., Bedford, MA. newsgroups: comp.lang.ada Date: 1996-10-17T00:00:00+00:00 List-Id: In article dewar@merv.cs.nyu.edu (Robert Dewar) writes: > Well I would not call it ignorance, since this is certainly not a > recognized technical term. In fact I can't even remember if GNAT > invented it or not, I suspect we did. You may have, but every PL/I compiler implementor I know has come up with the same term or a similar one. In PL/I you have to support pointers to subprograms, which have to designate the code, the environment/stack and the location of associated static local data. Some compilers use three word pointers, at Stratus we used two by having a static pointer and code pointer pair for each subprogram in global memory, so a fat pointer designated the stack frame and this vector. > We use it simply to mean, as you say, a pointer with other > information. For example, in GNAT, the default (but overridable) > form of pointers to unconstrained arrays is a structure with two > pointers, one to the data (which could be, but is not yet, a > virtual origin), and one a pointer to a record containing the > array bounds. Just out of curiousity, how do you implement access to subprogram types in GNAT? Do you use a pair of addresses or stick the code pointer in the stack frame? Or does this vary from target to target? -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...