Porting libstdc++ to custom OS?
Fery
engard.ferenc@innomed.hu
Wed May 12 08:58:00 GMT 2004
Hello,
I put this question again (much shorter), as maybe my previous post was
a bit complicated and not understandable...
I use a precompiled GCC v3.3 crosscompiler for SH platform, where I have
a custom multithreaded OS. My development platform is win32 (Cygwin). I
want to port libstdc++ to work properly with my OS, but do not want to
compile gcc. (I do not use exceptions or rtti, so I suppose gcc
internally do not need to be aware of my OS.) Specifically, I only want
to use STL containers and algorithms, and nothing which need OS support
(e.g. IO streams, character types or locale).
What I have to do?
Thanks,
Ferenc
PS: As a workaround, can I use the (not thread-aware version) libstdc++
provided with the compiler safely if I use the allocator
__malloc_alloc_template<> instead of __default_alloc_template<>? (I have
already implemented the __malloc_{lock,unlock}() functions.)
More information about the Libstdc++
mailing list