C++ 编译过程

编译器 :

gcc:8.1.0 配套 gdb 8.1

mingw

书籍网站:

编译原理_中国大学MOOC(慕课) (icourse163.org)

教授人美课好

《深入分析GCC》这本书怎么样? - 知乎 (zhihu.com)

据这位博主说可以看他写的深入分析gcc 和编译系统透视。

斯坦福的课(编译原理基于龙书):

CS107 Compiling C Programs with GCC (stanford.edu)

CS143: Compilers (stanford.edu)

.....

这位博主的介绍斯坦福大学编译原理课程质量怎么样? - 知乎 (zhihu.com)

MIT的课(基于虎书):

11 Compilers | Computation Structures - MIT …

CS神校CMU的东西应该也很不错,再一个就是国内中科大南大好像都有这方面的公开课在b站上。
 

预处理

指令 : g++ -E xxx.c -o xxx.i  |||||    g++ -E  xxx.c > any leagl string;

Top (The C Preprocessor) (gnu.org)

gcc 官网cpp manual开头就能看到preprocessor

C - Preprocessors (tutorialspoint.com)

The C Preprocessor is not a part of the compiler, but is a separate step in the compilation process. In simple terms, a C Preprocessor is just a text substitution tool and it instructs the compiler to do required pre-processing before the actual compilation.

按该网站所述,c预处理器并不属于编译器的一部分,而是独立的编译步骤C预处理器看作实际编译前指导编译器的一个文本替换。

编译

汇编

链接

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值