LLVM Essentials(Paperback)
暫譯: LLVM 基礎精要(平裝本)
Suyog Sarda, Mayur Pandey
- 出版商: Packt Publishing
- 出版日期: 2015-12-09
- 售價: $1,140
- 貴賓價: 9.5 折 $1,083
- 語言: 英文
- 頁數: 166
- 裝訂: Paperback
- ISBN: 1785280805
- ISBN-13: 9781785280801
-
相關分類:
Compiler
立即出貨 (庫存=1)
買這商品的人也買了...
-
$1,742Linux Device Drivers, 3/e (Paperback)
-
$620$527 -
$580$452 -
$360$281 -
$1,880$1,786 -
$320$224 -
$1,200$948 -
$595$565 -
$1,730$1,644 -
$1,064Wicked Cool Shell Scripts: 101 Scripts for Linux, OS X, and Unix Systems, 2/e (Paperback)
-
$280$218 -
$780$616 -
$383LLVM Cookbook中文版
-
$590$502 -
$414$393 -
$356實用機器學習 (Practical Machine Learning)
-
$780$616 -
$580$458 -
$1,800$1,710 -
$2,980$2,831 -
$450$356 -
$699$594 -
$880$695 -
$1,188Learn LLVM 12 : A beginner's guide to learning LLVM compiler tools and core libraries with C++ (Paperback)
-
$1,918Functional Programming in Scala, 2/e (Paperback)
商品描述
Become familiar with the LLVM infrastructure and start using LLVM libraries to design a compiler
About This Book
- Learn to use the LLVM libraries to emit intermediate representation (IR) from high-level language
- Build your own optimization pass for better code generation
- Understand AST generation and use it in a meaningful way
Who This Book Is For
This book is intended for those who already know some of the concepts of compilers and want to quickly get familiar with the LLVM infrastructure and the rich set of libraries that it provides.
What You Will Learn
- Get an introduction to LLVM modular design and LLVM tools
- Convert frontend code to LLVM IR
- Implement advanced LLVM IR paradigms
- Understand the LLVM IR Optimization Pass Manager infrastructure and write an optimization pass
- Absorb LLVM IR transformations
- Understand the steps involved in converting LLVM IR to Selection DAG
- Implement a custom target using the LLVM infrastructure
- Get a grasp of C's frontend clang, an AST dump, and static analysis
In Detail
LLVM is currently the point of interest for many firms, and has a very active open source community. It provides us with a compiler infrastructure that can be used to write a compiler for a language. It provides us with a set of reusable libraries that can be used to optimize code, and a target-independent code generator to generate code for different backends. It also provides us with a lot of other utility tools that can be easily integrated into compiler projects.
This book details how you can use the LLVM compiler infrastructure libraries effectively, and will enable you to design your own custom compiler with LLVM in a snap.
We start with the basics, where you'll get to know all about LLVM. We then cover how you can use LLVM library calls to emit intermediate representation (IR) of simple and complex high-level language paradigms. Moving on, we show you how to implement optimizations at different levels, write an optimization pass, generate code that is independent of a target, and then map the code generated to a backend. The book also walks you through CLANG, IR to IR transformations, advanced IR block transformations, and target machines.
By the end of this book, you'll be able to easily utilize the LLVM libraries in your own projects.
Style and approach
This book deals with topics sequentially, increasing the difficulty level in a step-by-step approach. Each topic is explained with a detailed example, and screenshots are included to help you understand the examples.
商品描述(中文翻譯)
熟悉 LLVM 基礎架構並開始使用 LLVM 函式庫設計編譯器
關於本書
- 學習使用 LLVM 函式庫從高階語言產生中間表示 (IR)
- 建立自己的優化通道以改善程式碼生成
- 理解 AST 生成並以有意義的方式使用它
本書適合誰閱讀
本書適合那些已經了解一些編譯器概念並希望快速熟悉 LLVM 基礎架構及其提供的豐富函式庫的人。
您將學到什麼
- 了解 LLVM 模組化設計和 LLVM 工具的介紹
- 將前端程式碼轉換為 LLVM IR
- 實現進階的 LLVM IR 範式
- 理解 LLVM IR 優化通道管理器基礎架構並撰寫優化通道
- 吸收 LLVM IR 轉換
- 理解將 LLVM IR 轉換為選擇 DAG 的步驟
- 使用 LLVM 基礎架構實現自定義目標
- 掌握 C 的前端 clang、AST 傾印和靜態分析
詳細內容
目前,LLVM 是許多公司關注的焦點,並擁有非常活躍的開源社群。它為我們提供了一個編譯器基礎架構,可以用來為一種語言編寫編譯器。它提供了一組可重用的函式庫,可用於優化程式碼,以及一個與目標無關的程式碼生成器,用於為不同的後端生成程式碼。它還提供了許多其他實用工具,可以輕鬆整合到編譯器專案中。
本書詳細說明了如何有效使用 LLVM 編譯器基礎架構函式庫,並將使您能夠迅速設計自己的自定義編譯器。
我們從基礎開始,讓您了解 LLVM 的所有內容。接著,我們將介紹如何使用 LLVM 函式庫調用來產生簡單和複雜高階語言範式的中間表示 (IR)。然後,我們將展示如何在不同層級實現優化、撰寫優化通道、生成與目標無關的程式碼,然後將生成的程式碼映射到後端。本書還將引導您了解 CLANG、IR 到 IR 的轉換、進階的 IR 區塊轉換和目標機器。
在本書結束時,您將能夠輕鬆地在自己的專案中利用 LLVM 函式庫。
風格與方法
本書按順序處理主題,逐步提高難度。每個主題都用詳細的範例進行解釋,並附上截圖以幫助您理解範例。