![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编译器
First Snowflakes
捡贝壳
展开
-
编译器 SSA
阅读:https://blog.csdn.net/qq_29674357/article/details/78731713SSA 概念In compiler design, static single assignment form (often abbreviated as SSA form or simply SSA) is a property of an intermediate representation (IR), which requires that each vari...原创 2020-09-19 18:22:32 · 2743 阅读 · 0 评论 -
一些编译相关资料
深入浅出 JIT 编译器https://developer.ibm.com/zh/articles/j-lo-just-in-time/Openmp 一种并行编程方法?https://blog.csdn.net/ArrowYL/article/details/81094837https://www.openmp.org/https://clang.llvm.org/get_started.html原创 2020-09-19 18:09:42 · 86 阅读 · 0 评论 -
链接器 基础
有时能学到知识,却学不到工夫。-- 钟云龙Basic: https://blog.csdn.net/qq_35865125/article/details/105214201总览在编译系统中,链接器扮演类似“胶水”的角色。它把汇编器处理生成的 可重定位目标文件 黏合、拼接为一个可执行的ELF文件。然而,链接器并非机械地拼接目标文件,它还需要完成汇编阶段无法完成的 段地址分配、符号...原创 2020-04-11 22:01:34 · 886 阅读 · 0 评论 -
.bss段和.data和.rodata段的区别
bss段(Block Started by Symbol segment)通常是指用来存放程序中未初始化的全局变量的一块内存区域。《Programming ground up》里对.bss的解释为:There is another section called the .bss. This section is like the data section, except that ...原创 2020-04-05 21:19:41 · 2782 阅读 · 0 评论 -
ELF文件格式
目前主流的可执行文件 格式 有 两种, Windows 平 台下 的 PE 文件 格式 和 Linux 平 台下 的 ELF 文件 格式。Linux 使用 ELF 作为 目标 文件 的 格式。 从前 Linux 中 目标 文件 以 a. out 格式 为主, 不过 由于 a. out 格式 不能 很好 地支 持 动态链接以及 C++, 因此其主流地位 逐渐被 ELF 格式所取代。...原创 2020-03-31 08:21:37 · 582 阅读 · 0 评论 -
语法分析 LL(1)
ongoing--原创 2020-03-29 21:37:00 · 209 阅读 · 0 评论 -
Runtime library, CRT
首先 ,看一句知乎的片段:https://www.zhihu.com/question/39858721/answer/83472146:“Lampson也在图灵奖获奖演讲时曾说过一句话:Any problem in computer science can be solved with another level of indirection. (有人也说是David Wheeler说...原创 2019-08-17 21:57:25 · 245 阅读 · 0 评论 -
不同操作系统下的C-C++ 编译器
1 Windows系统1) MSVC指微软的VC编译器,the Microsoft Visual C++ compiler and libraries toolset2) MinGWMinimalist GNU on Windows的缩写。允许你在GNU/Linux和Windows平台生成本地的Windows程序而不需要第三方C运行时库。官方: http://www.mi...原创 2019-08-17 18:39:10 · 3534 阅读 · 0 评论 -
开源工具 Cygwin --- Get that Linux feeling - on Windows
http://www.cygwin.com/原创 2019-08-21 14:50:46 · 126 阅读 · 0 评论 -
lex&yacc系列(4)--- yacc语法分析探索及calculator实例
音乐是人生的艺术1 移进/规约When yacc processes a parser, it creates a set of states each of which reflects a possible position in one or more par...原创 2019-02-02 23:06:50 · 815 阅读 · 0 评论 -
lex&yacc系列(3)--- yacc介绍及实例
yacc是开发编译器的一个有用的工具,采用LR(1)(实际上是LALR(1))语法分析方法。LR(k)分析方法是1965年Knuth提出的,括号中的k(k >=0)表示向右查看输入串符号的个数。LR分析法给出一种能根据当前分析栈中的符号串和向右顺序查看输入串的k个符号就可唯一确定分析器的动作是移进还是规约和用哪个产生式规约。这种方法具有分析速度快,能准确地指出出错的位置,它的主...原创 2019-02-02 22:57:07 · 1077 阅读 · 0 评论 -
lex&yacc系列(2)--- lex介绍及实例
A question that sometimes drives me hazy--am I or the others crazy?——EinsteinLex:For a C program, the units are variable names, constants, strings, operators, punctuatio...原创 2019-02-02 22:47:34 · 5438 阅读 · 0 评论 -
lex&yacc系列(1)--- lex和yacc简介
Imagination is more important than knowledge.Knowledge is limited. Imagination encircles the world.—— Einstein首先,lex和yacc是开源工具,帮助开发者实现语法,词法分析。如果作为一个开发者去使用它们,就需要阅读它们的说明书,直到你会用,一句话,就是个工具而已。当然,如果你对编译原理...原创 2019-02-02 22:36:35 · 2619 阅读 · 1 评论