[PATCH] C++ space optimization: de-cloning con/de/structors

Matt Austern austern@apple.com
Tue Aug 6 15:59:00 GMT 2002


On Tuesday, August 6, 2002, at 03:46 PM, Mark Mitchell wrote:

>> The MACH-O issue, incidentally, is that users can tell the linker to
>> reorder symbols to improve locality.
>
> Ah.  Add a "no split" bit somewhere...

In the long run, you're obviously right.  We need that bit
for various reasons, not just for multiple entry points.
We need it to deal with EH information more elegantly
that what we're doing now, for example.

In the short run, our linker expert is on vacation this week.

(Again, no idea whether other linkers have similar issues.
My experience is that your average linker has N flags,
where N is some rather large number.  As a result, it has
2^N modes.  The danger is that a feature like multiple
entry points might work in 2^N-1 of those modes.)

			--Matt



More information about the Gcc-patches mailing list