From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Shared Generic Instance Code
Date: 1997/04/04
Date: 1997-04-04T00:00:00+00:00 [thread overview]
Message-ID: <dewar.860206721@merv> (raw)
In-Reply-To: zoIMRAAI9XRzEwoa@marnhull.demon.co.uk
Bill Keen said
<<My post was prompted by thought that if the generic actual parameters
can be determined at compile time then the code for a generic instance
can be a straight inline expansion of the body. But if not, then the
generated code must contain some mechanism for choice. I thought this
constituded code sharing, though I see that the subject is much wider.
But my curiosity is aroused. How do compilers (does GNAT) deal with this
distinction?>>
GNAT uses macro expansion for all generic specs and bodies. There is nothing
about the compilation model or structure of GNAT that dictates this choice,
it is a deliberate design choice that favors efficiency over space. Eventually
it would be nice to implement generic sharing at least on an optional basis.
next prev parent reply other threads:[~1997-04-04 0:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-01 0:00 Shared Generic Instance Code david scott gibson
1997-04-01 0:00 ` Pat Rogers
1997-04-01 0:00 ` Joel VanLaven
1997-04-01 0:00 ` Robert A Duff
1997-04-02 0:00 ` Robert Dewar
1997-04-02 0:00 ` Robert A Duff
1997-04-02 0:00 ` Robert Dewar
1997-04-02 0:00 ` Robert A Duff
1997-04-01 0:00 ` Robert A Duff
1997-04-02 0:00 ` Robert Dewar
1997-04-05 0:00 ` Nick Roberts
1997-04-05 0:00 ` Robert A Duff
1997-04-05 0:00 ` Nick Roberts
1997-04-06 0:00 ` Robert Dewar
1997-04-02 0:00 ` Jon S Anthony
1997-04-02 0:00 ` Robert A Duff
1997-04-03 0:00 ` Robert Dewar
1997-04-03 0:00 ` Jon S Anthony
1997-04-03 0:00 ` Robert Dewar
1997-04-03 0:00 ` Corey Minyard
1997-04-03 0:00 ` Bill Keen
1997-04-03 0:00 ` Robert Dewar
1997-04-04 0:00 ` Fergus Henderson
1997-04-04 0:00 ` Robert Dewar
1997-04-04 0:00 ` Robert A Duff
1997-04-04 0:00 ` Bill Keen
1997-04-04 0:00 ` Robert Dewar [this message]
1997-04-05 0:00 ` Tom Moran
1997-04-06 0:00 ` Nick Roberts
1997-04-07 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox