This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Stipping away locale support
- From: Bernardo Innocenti <bernie at develer dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 15 Aug 2003 03:01:03 +0200
- Subject: Stipping away locale support
- Organization: Develer S.r.l.
Hello,
I'm building an embedded C++ application and I'm
suffering serious bloat caused by libstdc++.
My application is quite small and uses only basic C++
features (no threading, no wchar, no iostreams and no STL),
but somehow all of the C locale stuff gets linked in,
bringing several other things with it (formatters, etc.).
With GCC 3.3.1, the text+data size was 384KB. In GCC 3.4,
the size increased to 682KB. This is a serious regression.
I've browsed into the build infrastructure to see if
there was already some way to disable locale support
altogether, but it seems you must choose between glibc
or generic support. My toolchain is currently using generic
locale with uClibc.
Would it be possible/easy to add a dummy locale directory
that offers the minimum required functionality needed to
build C++ applications not using locale stuff?
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html