Re: Attribute BASED and LINKAGE SECTION
- From: mwojcik@xxxxxxxxxxx (Michael Wojcik)
- Date: 28 Jun 2006 21:24:35 GMT
In article <4gfn94F1n162fU2@xxxxxxxxxxxxxx>, "Frank Swarbrick" <Frank.Swarbrick@xxxxxxxxxxxxxx> writes:
Michael Wojcik<mwojcik@xxxxxxxxxxx> 06/27/06 5:24 PM >>>
Considering other discussions of the "execution of the runtime
element" (eg in the discussion of the PROPAGATE directive), I believe
this means "execution of the current activation of the runtime
element", so the association would end when the current activation
ends - that is, for a recursive call, when the current call ends.
When the program returns to the activating statement (ie the
recursive call), the previous association would be restored.
In other words, it seems to me that based items in linkage should
be treated like automatic data, like local-storage based items.
Which still begs the question (if I'm using that term correctly!), what is
the difference (if any) between based local-storage items and based linkage
items? And if there is no difference, why are the both specified by the
standard?
(I've lost track of just what bits of the standard have been cited in
this thread, so some of this may be repeating, to some extent, what
others have posted.)
I just took another look at 8.6.4 ("Based entries and based data
items"), and it says that for based items in local-storage, the
association ends "at the end of the life cycle of the data items
defined in that section", whereas for based items in linkage, it
ends "at the end of the execution of the runtime element".
If I'm correct about what the latter phrase means, then based items
in linkage always lose their association when the current activation
of the runtime element ends.
However, per 8.5.3 ("Automatic, initial, and static internal items"),
data items in local-storage always have automatic persistence, which
appears to mean that their life cycle always ends ... when the
current activation of the runtime element ends.
So it appears that based items in linkage and local-storage behave
the same.
I imagine that the committee may have introduced based local-storage
items as automatic based items, but also defined based linkage items
with the same behavior to simplify the migration of programs that use
popular vendor extensions for setting the address of linkage items.
(To answer your other question: In rhetoric, "beg the question"
means to phrase a question in a manner that suggests an answer, and
some prescriptivists claim that this is the only "correct" use.
Descriptivists, however, note that the meaning you employ here -
"prompt the question" - is well-established and widely recognized.
I avoid the latter usage myself, preferring to duel with my fellow
pedants over other trivia, but it's a common one.)
--
Michael Wojcik michael.wojcik@xxxxxxxxxxxxxx
The surface of the word "profession" is hard and rough, the inside mixed with
poison. It's this that prevents me crossing over. And what is there on the
other side? Only what people longingly refer to as "the other side".
-- Tawada Yoko (trans. Margaret Mitsutani)
.
- Follow-Ups:
- Re: Attribute BASED and LINKAGE SECTION
- From: Frank Swarbrick
- Re: Attribute BASED and LINKAGE SECTION
- From: Roger While
- Re: Attribute BASED and LINKAGE SECTION
- References:
- Attribute BASED and LINKAGE SECTION
- From: Roger While
- Re: Attribute BASED and LINKAGE SECTION
- From: Frank Swarbrick
- Attribute BASED and LINKAGE SECTION
- Prev by Date: Re: OT (mostly)
- Next by Date: Re: OT (mostly)
- Previous by thread: Re: Attribute BASED and LINKAGE SECTION
- Next by thread: Re: Attribute BASED and LINKAGE SECTION
- Index(es):
Relevant Pages
|
|