美文网首页
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://clang.llvm.org/get_started.html http://llvm.or...

  • GCC/Clang编译器浅谈

    GCC和Clang编译器浅谈GCC是Linux上使用的编译器,Clang是Mac上使用的编译器,两者命令格式基本相...

  • iOS中Block实现原理的全面分析

    Block的底层基本结构 通过clang命令查看编译器是如何实现Block的,在终端输入clang -rewrit...

  • iOS App编译和启动原理

    编译原理: 将编译过程分为前端和后端两部分处理 Clang(编译器前端):GCC的替代品,Clang的编译速度比G...

  • 最新kali之clang

    描述: clang-Clang C,C ++和Objective-C编译器。 clang是一个C、c++和Obje...

  • 了解-clang编译过程

    clang编译过程 clang是一个 C、C++和 Objective-C的编译器, 包含了预处理、语法解析、代码...

  • 四 OC底层原理 -- 对象 与 isa 的关系

    一. 探究对象本质 需要用到Clang, 利用Clang 编译OC文件 我们通过xcrun 编译编译 main.m...

  • iOS开发学习-博文列表

    更新时间:2015年8月12日 OC系列 《OC:Clang编译器编译OC代码》 《OC:基本数据类型》 《OC:...

  • CC++编译器与Makefile

    编译器与Makefile [TOC] gcc/g++/clang 了解c/c++编译器的基本使用,能够在后续移植第...

  • clang driver

    clang不止是前端编译器,更是连接了LLVM整个编译过程和其他工具的一个驱动程序。 在 clang/includ...

网友评论

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

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