On 6/22/2015 6:07 PM, Yuxin Ren wrote: > Now I want to support C++ in our research operating system, which is > written from "bare metal". So it does not have compatible system > interface with Linux, but it has a large part of standard C library. > As I am still a very beginner in both OS and programming language. I > do not clearly know how I can achieve this. > In general, what steps do I need? > I am very confused about the relationship among compiler (gcc), > libraries (libgcc, libstdc++, libc and so on) and OS. > > If there is already a gcc, even without g++, it may not be difficult to rebuild with appropriate --enable-languages setting. https://gcc.gnu.org/install/ which will inherit C runtime libraries and rebuild libstdc++ and libgcc2.... -- Tim Prince