public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Coalesce object-code identical dtor, template, etc. ?
@ 2003-06-03 18:49 Karl M. Hegbloom
  0 siblings, 0 replies; only message in thread
From: Karl M. Hegbloom @ 2003-06-03 18:49 UTC (permalink / raw)
  To: gcc-bugs

When I use a template instantiated with a pointer to type, or when more
than one automaticly generated function is created...  The object code I
see when I compile it with "-S" often has several functions in it that
are _identical_, instruction for instruction, other than their jump
label, which only "really" exists in the compiler/assembler, not at
runtime.  I think that a good optimization would be to detect that, and
just write two labels and one function.  This will reduce the object
binary size, perhaps considerably.  Also, can the linker do this as
well?

Q: Are there pre-compiled STL data types instantiated with
pointer-to-type that could be reused in the above fashion?

-- 
Karl M. Hegbloom <hegbloom@pdx.edu>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-03 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-03 18:49 Coalesce object-code identical dtor, template, etc. ? Karl M. Hegbloom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).