This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Porting libstdc++ to custom OS?
- From: Fery <engard dot ferenc at innomed dot hu>
- To: libstdc++ at gcc dot gnu dot org
- Date: Wed, 12 May 2004 11:11:30 +0200
- Subject: Porting libstdc++ to custom OS?
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.)