[m-dev.] Linkage of static data

Thomas Conway conway at cs.mu.OZ.AU
Sat Feb 26 10:11:03 AEDT 2000


Hi

The handling of the linkage scope (static vs global) for static structures
(ie stack layout strcutures) seems to be a bit of a mess. There are two
mechanisms - one that records the linkage in the strcuture, and the other
that uses the predicate linkage/2. The former is described as being
redundant in the comments, being replaced by the latter. On the other hand,
I need some stack layouts (the ones for exported procedures) to have
global scope, so linkage/2 seems like an inadequate mechanism. My thought
is to remove the linkage/2 mechanism and rely on the linkage scope from
the structure.

I'm about to post a diff that does that, as part of the deep profiling
changes, but I thought it worth mentioning separately. Comments?

-- 
 Thomas Conway )O+     Every sword has two edges.
     Mercurian            <conway at cs.mu.oz.au>
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list