惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

LLVM

指令调度在 LLVM 与 OoO 的区别与联系? - V2EX 使用 LLVM 的 clang 替换苹果自带的有问题吗 - V2EX 请问 LLVM 如何链接多个目标文件呢? - V2EX 基于 llvm 开发编程语言,有必要学汇编吗?理由是什么,谢谢 - V2EX 想更熟悉 LLVM,是不是要学会 c++?还要学其他的吗? - V2EX 我用 llvm 实现了 bb 语言的加法和减法,也套娃的实现了打印功能,那怎么实现更高级的,如 http 请求功能呢,该怎么套娃呢?套 c 语言吗 - V2EX 用 Clang 编译时如何将编译参数存进 ELF 的某个 section 里? - V2EX LLVM 8.0 发布 WebAssembly target 移除实验标签 - V2EX 假如要实现一个基于 LLVM IR 的包管理器,有什么坑或者硬伤吗? - V2EX LLVM/Clang LLD LLDB 5.0 正式发布 - V2EX 有哪位在 RHEL5 下编译过 llvm? - V2EX 有没有朋友了解 klee 和 llvm 啊? - V2EX 大家能访问 LLVM(llvm.org)吗 - V2EX ClangFormat 代码格式化工具 - V2EX llvm足够成熟了么?跟GCC相比有什么优劣? - V2EX 王垠果然开始在 LLVM 上做事情了…… - V2EX 居然看到LLVM了 - V2EX
我想用 llvm 制作一门语言的编译器,是不是要学会 llvm ir 里的哪个奇怪的语法 - V2EX
find456789 · 2020-12-19 · via LLVM

find456789

V2EX  ›  LLVM

 

find456789 · 2020 年 12 月 19 日 · 3353 次点击

这是一个创建于 2003 天前的主题,其中的信息可能已经有所发展或是发生改变。

我的理解是,llvm ir 里的语法,应该也类似一门编程语言,但这个语言是针对大部分硬件平台通用的

我只要把我的编程语言,翻译成 llvm ir 里的语言, 就可以实现一门可以在大多数平台编译的语言了

所以,在我的语言里,我要实现 print("hello world"), 那我就要掌握 llvm ir 里,怎么实现 打印 hello word,

如果我要实现 定义一个函数的功能, 就要掌握 用 llvm ir 语言定义函数的方法

只有掌握了 llvm ir 语言, 才能实现这个翻译的过程

请问我的理解对吗? 我应该怎么办


下图是我发现的 llvm ir 的语言

如图

image.png