What is the difference between libc++ and libc++ab

2019-03-19 03:56发布

问题:

I saw the two projects are quite related, but what are the differences between them? The official webpage doesn't tell much about it.

I know that ABI (Application Binary Interface) is used to provide low-level binary interface among different platforms. So is libc++abi used to provide different implementations for different platforms, and general interface for libc++?

Would be better go give some specific example, e.g. what are included in libc++abi and what in libc++.

Thanks.

回答1:

The Application Binary Interface, or ABI for short, is intended to provide certain low level functions from which to build the C++ standard library. It is a supporting library that is a separate component from the actual standard library. Along with libcxxabi, you may also come across Pathscale's libcxxrt or GCC's libsupcxx.

On the other hand, libc++ is an implementation of the C++ standard library that can be built using either of the 3 mentioned ABIs.



标签: libc++