[cfe-dev] [libc++] Porting libc++ to embedded targets/compilers

Jonathan Roelofs via cfe-dev cfe-dev at lists.llvm.org
Wed Sep 13 09:01:46 PDT 2017



On 9/13/17 2:12 AM, David Chisnall via cfe-dev wrote:
> 
> The C++11 locale support is designed to be a thin wrapper around POSIX2008 locales.  These are pretty heavy and likely not to be useful in an embedded target, where you’d only want to support the C locale (std::locale::classic).  In this case, all of these would be compiled away.  I don’t think we have such a fallback implementation, but a trivial one should be easy to write.

Assuming we're talking about the same thing, there's one in: 
`include/support/xlocale/__posix_l_fallback.h`. That's included, for 
example, by: `include/support/newlib/xlocale.h`


Jon

> 
> David
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> 

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded / Siemens



More information about the cfe-dev mailing list