[357] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: C++ Wrappers
daemon@ATHENA.MIT.EDU (Rob Browning)
Sat Jun 14 12:16:49 1997
To: gtk-list@redhat.com
From: Rob Browning <rlb@cs.utexas.edu>
Date: 14 Jun 1997 11:29:50 -0500
In-Reply-To: Martynas Kunigelis's message of Sat, 14 Jun 1997 12:10:52 +0300
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Martynas Kunigelis <martynas@nomagic.com> writes:
> is that g++ produces and links the same code for every template
> instance with the same parameter in different compile units. Except
> for ELF format, where it places the code into a common section and
> duplicate code gets eliminated during link time.
Note that if you go to cygnus's web site (ftp.cygnus.com/pub/g++), and
grab the template repository patch (gcc-2.7.2-repo), and use it to
recompile gcc, you can "fix" the problem.
After the patch gcc will when invoked with the -frepo flag, during
compilation, store information about all the template signatures in a
given source file in a corresponding .rpo file. Then it will use this
information during the link step to generate one copy of the needed
templates in each resulting object library, etc.
--
Rob
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null