美文网首页
clang学习1-编译和基本组件

clang学习1-编译和基本组件

作者: 阿笨猫 | 来源:发表于2018-05-05 20:01 被阅读0次

    编译

    编译中几个可选组件

    1.libcxx 对应的是libstdc++

    libc++ is a new implementation of the C++ standard library, targeting C++11 and above.
    https://libcxx.llvm.org
    https://libcxx.llvm.org/docs

    2.compiler-rt

    https://compiler-rt.llvm.org
    https://wdv4758h.github.io/notes/compiler/compiler-rt.html


    The compiler-rt project consists of:

    • builtins - a simple library that provides an implementation of the low-level target-specific hooks required by code generation and other runtime components. For example, when compiling for a 32-bit target, converting a double to a 64-bit unsigned integer is compiling into a runtime call to the "__fixunsdfdi" function. The builtins library provides optimized implementations of this and other low-level routines, either in target-independent C form, or as a heavily-optimized assembly.

      builtins provides full support for the libgcc interfaces on supported targets and high performance hand tuned implementations of commonly used functions like __floatundidf in assembly that are dramatically faster than the libgcc implementations. It should be very easy to bring builtins to support a new target by adding the new routines needed by that target.

    • sanitizer runtimes - runtime libraries that are required to run the code with sanitizer instrumentation. This includes runtimes for:

    • profile - library which is used to collect coverage information.

    • BlocksRuntime - a target-independent implementation of Apple "Blocks" runtime interfaces.


    3.clang-tools-extra

    https://clang.llvm.org/extra/index.html

    其他几个工具

    libclang

    Clang Static Analyzer

    相关文章

      网友评论

          本文标题:clang学习1-编译和基本组件

          本文链接:https://www.haomeiwen.com/subject/hbmerftx.html