LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries (Paperback) (LLVM 技巧、提示與最佳實踐:Clang 與中端庫)

Min-Yih Hsu

  • 出版商: Packt Publishing
  • 出版日期: 2021-04-23
  • 定價: $1,800
  • 售價: 9.5$1,710
  • 語言: 英文
  • 頁數: 370
  • ISBN: 1838824952
  • ISBN-13: 9781838824952
  • 相關分類: Compiler
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

About this book

Every programmer or engineer, at some point in their career, works with compilers to optimize their applications. Compilers convert a high-level programming language into low-level machine-executable code. LLVM provides the infrastructure, reusable libraries, and tools needed for developers to build their own compilers. With LLVM’s extensive set of tooling, you can effectively generate code for different backends as well as optimize them.

In this book, you’ll explore the LLVM compiler infrastructure and understand how to use it to solve different problems. You’ll start by looking at the structure and design philosophy of important components of LLVM and gradually move on to using Clang libraries to build tools that help you analyze high-level source code. As you advance, the book will show you how to process LLVM IR – a powerful way to transform and optimize the source program for various purposes. Equipped with this knowledge, you’ll be able to leverage LLVM and Clang to create a wide range of useful programming language tools, including compilers, interpreters, IDEs, and source code analyzers.

By the end of this LLVM book, you’ll have developed the skills to create powerful tools using the LLVM framework to overcome different real-world challenges.

商品描述(中文翻譯)

關於本書

每位程式設計師或工程師在職業生涯中都會與編譯器合作,以優化他們的應用程式。編譯器將高階程式語言轉換為低階的機器可執行碼。LLVM 提供了基礎架構、可重複使用的函式庫和工具,讓開發人員能夠建立自己的編譯器。憑藉 LLVM 的廣泛工具組,您可以有效地為不同的後端生成程式碼,並對其進行優化。

在本書中,您將探索 LLVM 編譯器基礎架構,並了解如何使用它來解決不同的問題。您將首先研究 LLVM 的重要組件的結構和設計理念,並逐漸轉向使用 Clang 函式庫來建立幫助您分析高階源代碼的工具。隨著您的進展,本書將向您展示如何處理 LLVM IR - 這是一種強大的方式,可以對源代碼進行轉換和優化,以達到不同的目的。憑藉這些知識,您將能夠利用 LLVM 和 Clang 創建各種有用的程式語言工具,包括編譯器、解譯器、集成開發環境和源代碼分析器。

通過閱讀本書,您將能夠使用 LLVM 框架開發強大的工具,以應對不同的現實挑戰。

作者簡介

Min-Yih Hsu
Min-Yih "Min" Hsu is a Ph.D. candidate in computer science at the University of California, Irvine. His research focuses on compiler engineering, code optimization, advanced hardware architectures, and system security. He has been an active member of the LLVM community since 2015 and has contributed numerous patches upstream. Min also dedicates his time to advocating LLVM and compiler engineering through various avenues, such as writing blog posts and giving talks at conferences. In his spare time, Min likes to explore a variety of different coffee beans and ways of brewing.

作者簡介(中文翻譯)

Min-Yih Hsu(許敏益)是加州大學爾灣分校(University of California, Irvine)的計算機科學博士候選人。他的研究專注於編譯器工程、代碼優化、先進硬體架構和系統安全。自2015年以來,他一直是LLVM社區的活躍成員,並向上游貢獻了許多修補程式。Min還通過撰寫博客文章和在會議上發表演講等多種途徑,致力於推廣LLVM和編譯器工程。在閒暇時間,Min喜歡探索各種不同的咖啡豆和沖泡方式。