官术网_书友最值得收藏!

Chapter 1. Playing with LLVM

The LLVM Compiler infrastructure project, started in 2000 in University of Illinois, was originally a research project to provide modern, SSA based compilation technique for arbitrary static and dynamic programming languages. Now it has grown to be an umbrella project with many sub projects within it, providing a set of reusable libraries having well defined interfaces.

LLVM is implemented in C++ and the main crux of it is the LLVM core libraries it provides. These libraries provide us with opt tool, the target independent optimizer, and code generation support for various target architectures. There are other tools which make use of core libraries, but our main focus in the book will be related to the three mentioned above. These are built around LLVM Intermediate Representation (LLVM IR), which can almost map all the high-level languages. So basically, to use LLVM's optimizer and code generation technique for code written in a certain programming language, all we need to do is write a frontend for a language that takes the high level language and generates LLVM IR. There are already many frontends available for languages such as C, C++, Go, Python, and so on. We will cover the following topics in this chapter:

  • Modular design and collection of libraries
  • Getting familiar with LLVM IR
  • LLVM Tools and using them at command line
主站蜘蛛池模板: 厦门市| 班戈县| 塔河县| 阿坝县| 来宾市| 阿图什市| 林周县| 三原县| 新泰市| 平泉县| 筠连县| 共和县| 长武县| 赞皇县| 罗甸县| 淮阳县| 关岭| 阿克陶县| 竹山县| 西乌珠穆沁旗| 普格县| 惠来县| 肃宁县| 贵州省| 东乡县| 新巴尔虎右旗| 永顺县| 三台县| 读书| 盐边县| 奉化市| 博罗县| 宣汉县| 佛教| 深泽县| 邹城市| 永胜县| 富宁县| 若羌县| 诏安县| 彰武县|