This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Stipping away locale support


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]