首页 / MAC / Mac OS 下的 gcc gdb
Mac OS 下的 gcc gdb
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Mac OS 下的 gcc gdb,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2106字,纯文字阅读大概需要4分钟。
内容图文
![Mac OS 下的 gcc gdb](/upload/InfoBanner/zyjiaocheng/458/223459e8fcdf433a9c27cc8238dd6518.jpg)
clang: a C language family frontend for LLVM
The goal of the Clang project is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler.
也就是说clang是一个编译器的前端,主要负责语法,词法分析并生成LLVM可以理解的代码传递给LLVM进行编译。
LLVM
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Despite its name, LLVM has little to do with traditional virtual machines, though it does provide helpful libraries that can be used to build them. The name "LLVM" itself is not an acronym; it is the full name of the project.
LLVM began as a research project at the University of Illinois, with the goal of providing a modern, SSA-based compilation strategy capable of supporting both static and dynamic compilation of arbitrary programming languages. Since then, LLVM has grown to be an umbrella project consisting of a number of subprojects, many of which are being used in production by a wide variety of commercial and open source projects as well as being widely used in academic research. Code in the LLVM project is licensed under the "UIUC" BSD-Style license.
LLVM则是主要的编译并产生机器码的部分。
gcc
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these languages (libstdc++, libgcj,...). GCC was originally written as the compiler for theGNU operating system.
其实gcc并不是一个软件,而是一套软件,全称GNU Compiler Collection。相对于clang和LLVM来说,也会分为前端,后端,回想一下编译原理,gcc实际上会首先调用cpp对程序进行预处理,这也就相当于clang所做的工作,然后会调用cc1和ld来进行编译和链接,这就相当于LLVM所做的工作。
这里有一篇文章很好的解释了clang/LLVM的发展历史,水果公司和gcc之间的合作以及矛盾等:
GCC,LLVM,Clang 作者 肖雨宸
从这篇文章中可以看到他们的组合并不是绝对的,gcc同样也可以和LLVM搭配使用。
参考文献:
1,clang官方网站:
http://clang.llvm.org/index.html
2,LLVM官方网站:
http://www.llvm.org/
3,gcc官方网站:
http://gcc.gnu.org/
Mac OS 下的 gcc gdb
标签:
本文系统来源:http://my.oschina.net/maxio/blog/512678
内容总结
以上是互联网集市为您收集整理的Mac OS 下的 gcc gdb全部内容,希望文章能够帮你解决Mac OS 下的 gcc gdb所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。