TOP
經典不再等待!讀懂羅馬人的強大,開啟你的智力冒險
LLVM Code Generation: A deep dive into compiler backend development

LLVM Code Generation: A deep dive into compiler backend development

商品資訊

定價
:NT$ 2500 元
缺貨無法訂購
無法訂購
商品簡介

商品簡介

Explore the world of code generation with the LLVM infrastructure, and learn how to extend existing backends or develop your own

Key Features:

- Understand the steps involved in generating assembly code from LLVM IR

- Learn the key constructs needed to leverage LLVM for your hardware or backend

- Strengthen your understanding with targeted exercises and practical examples in every chapter

- Purchase of the print or Kindle book includes a free PDF eBook

Book Description:

The LLVM infrastructure is a popular compiler ecosystem widely used in the tech industry and academia. This technology is crucial for both experienced and aspiring compiler developers looking to make an impact in the field. Written by Quentin Colombet, a veteran LLVM contributor and architect of the GlobalISel framework, this book provides a primer on the main aspects of LLVM, with an emphasis on its backend infrastructure; that is, everything needed to transform the intermediate representation (IR) produced by frontends like Clang into assembly code and object files.

You'll learn how to write an optimizing code generator for a toy backend in LLVM. The chapters will guide you step by step through building this backend while exploring key concepts, such as the ABI, cost model, and register allocation. You'll also find out how to express these concepts using LLVM's existing infrastructure and how established backends address these challenges. Furthermore, the book features code snippets that demonstrate the actual APIs.

By the end of this book, you'll have gained a deeper understanding of LLVM. The concepts presented are expected to remain stable across different LLVM versions, making this book a reliable quick reference guide for understanding LLVM.

What You Will Learn:

- Understand essential compiler concepts, such as SSA, dominance, and ABI

- Build and extend LLVM backends for creating custom compiler features

- Optimize code by manipulating LLVM's Intermediate Representation

- Contribute effectively to LLVM open-source projects and development

- Develop debugging skills for LLVM optimizations and passes

- Grasp how encoding and (dis)assembling work in the context of compilers

- Utilize LLVM's TableGen DSL for creating custom compiler models

Who this book is for:

This book is for both beginners to LLVM and experienced LLVM developers. If you're new to LLVM, it offers a clear, approachable guide to compiler backends, starting with foundational concepts. For seasoned LLVM developers, it dives into less-documented areas such as TableGen, MachineIR, and MC, enabling you to solve complex problems and expand your expertise. Whether you're starting out or looking to deepen your knowledge, this book has something for you.

Table of Contents

- Building LLVM and Understanding the Directory Structure

- Contributing to LLVM

- Compiler Basics and How They Map to LLVM APIs

- Writing Your First Optimization

- Dealing with Pass Managers

- TableGen - LLVM Swiss Army Knife for Modeling

- Understanding LLVM IR

- Survey of the Existing Passes

- Introducing Target-Specific Constructs

- Hands-On Debugging LLVM IR Passes

- Legacy Instruction Selection Framework - SelectionDAG

- Getting Started with the Machine Code Layer

- The Machine Pass Pipeline

- Getting Started with Instruction Selection

- Instruction Selection: The IR Building Phase

- Instruction Selection: The Legalization Phase

(N.B. Please use the Read Sample option to see further chapters)

購物須知

外文書商品之書封,為出版社提供之樣本。實際出貨商品,以出版社所提供之現有版本為主。部份書籍,因出版社供應狀況特殊,匯率將依實際狀況做調整。

無庫存之商品,在您完成訂單程序之後,將以空運的方式為你下單調貨。為了縮短等待的時間,建議您將外文書與其他商品分開下單,以獲得最快的取貨速度,平均調貨時間為1~2個月。

為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。

若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。

定價:100 2500
缺貨無法訂購

暢銷榜

客服中心

收藏

會員專區