This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: demengler in libstdc++ is changed
- From: Chris Lattner <sabre at nondot dot org>
- To: Ian Lance Taylor <ian at wasabisystems dot com>
- Cc: Gabriel Dos Reis <gdr at integrable-solutions dot net>,<gcc at gcc dot gnu dot org>
- Date: Thu, 13 Nov 2003 22:53:26 -0600 (CST)
- Subject: Re: demengler in libstdc++ is changed
>> Many C++ runtime implementors have reached the conclusion that the C
>> runtime is far more efficiently and effectively implemented on top of
>> C++ (rather than the inverse); however that idea seems to meet
>> (non-technical) resistance (I have no workable theory of why).
> Well, one obvious reason is that not all C programmers want to learn
> C++.
Presumably if they are working on the C++ demangler, they know C++.
> But if you can get a smaller executable size when doing a static link,
> then I think it should be seriously considered. If you can't, then it
> should not be considered.
LLVM has a variety of link-time optimizations for reducing both code and
data size. Even trivially simple techniques like interprocedural constant
propagation can make a huge difference... when statically linking, we can
specialize all of libstdc++ just for the program. :)
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/