What is the difference between libc++ and libc++abi library in LLVM?

丶灬走出姿态 提交于 2019-12-12 07:32:59

问题


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.



来源:https://stackoverflow.com/questions/45314177/what-is-the-difference-between-libc-and-libcabi-library-in-llvm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!