![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LLVM学习日记
MasterLinWang
这个作者很懒,什么都没留下…
展开
-
【Getting Started with LLVM Core Libraries】P38 3.6 实验 编写你的第一个LLVM项目
LLVM学习笔记【Getting Started with LLVM Core Libraries】P38 3.6 实验编写你的第一个LLVM项目编写Makefile以下为书中第一段代码:以下为书中第二段代码:以下为书中第三段代码:编写代码以下为书中代码:mysource.cpp 【Getting Started with LLVM Core Libraries】P38 3.6 实验编写你的第一个LLVM项目 在本节中,我们将展示如何使用LLVM库来编写你的第一个项目。在前面的章节中,我们介绍了如何使用LL原创 2020-10-03 17:47:13 · 507 阅读 · 2 评论 -
【Getting Started with LLVM Core Libraries】P30 3.4 实验 使用独立工具
LLVM学习笔记【Getting Started with LLVM Core Libraries】P30 3.4 实验 使用独立工具我们来看一个由分散在多个源文件中的函数组成的简单的C程序。但是,我们使用独立工具也可以获得相同的结果。为了继续完成编译,后续步骤可以采取以下两种方式:从每个LLVM位码文件生成特定于目标的目标文件,并通过将其链接到系统链接器来构建可执行程序:先将两个LLVM位码文件连接成最终的LLVM位码文件。然后,从最终的位码文件构建特定于目标的目标文件,并通过电泳系统链接程序来生成可执行原创 2020-10-01 15:37:27 · 208 阅读 · 0 评论 -
【Getting Started with LLVM Core Libraries】P17 2.1.3 实验 Compiler-RT
LLVM学习笔记【Getting Started with LLVM Core Libraries】P17 2.1.3 实验 Compiler-RT以下为书中原文以下为实验中与原文不同的地方实验32位编译实验64位编译以下为生成的编译文件内容test-32bit.stest-64bit.s 【Getting Started with LLVM Core Libraries】P17 2.1.3 实验 Compiler-RT 以下为书中原文 要查看编译器运行时库启动时的典型情况,可以编写一个执行64位除法的C程原创 2020-09-30 12:45:29 · 247 阅读 · 0 评论