Clang Compiler Frontend: Get to grips with the internals of a C/C++ compiler frontend and create your own tools (Paperback)

Murashko, Ivan

  • 出版商: Packt Publishing
  • 出版日期: 2024-03-29
  • 售價: $1,760
  • 貴賓價: 9.5$1,672
  • 語言: 英文
  • 頁數: 326
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1837630984
  • ISBN-13: 9781837630981
  • 相關分類: C++ 程式語言Compiler
  • 立即出貨 (庫存 < 3)

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

相關主題

商品描述

Boost your productivity with a variety of compiler tools that integrate seamlessly into your IDE

 

Key Features:

  • Expand your understanding of the C++ programming language by learning about how the C++ compiler works and how to utilize its advanced features
  • Explore techniques for static code analysis and use them to create lint checks
  • Enhance your IDE to support advanced compiler tools
  • Purchase of the print or Kindle book includes a free PDF eBook

 

Book Description:

Discover the power of Clang, a versatile compiler known for its compilation speed and insightful error and warning messages. This book will get you acquainted with the capabilities of Clang, helping you harness its features for performance improvements and modularity by creating custom compiler tools.

While focused on Clang compiler frontend, this book also covers other parts of LLVM, essential to understanding Clang's functionality, to keep up with the constantly evolving LLVM project.

Starting with LLVM fundamentals, from installation procedures to development tools, this book walks you through Clang's internal architecture and its integral role within LLVM. As you progress, you'll also tackle optimizing compilation performance through features such as C++ modules and header maps.

The later chapters cover tools developed using the Clang/LLVM, including clang-tidy for linting, refactoring tools, and IDE support, and feature many examples to illustrate the material.

By the end of this book, you'll have a solid understanding of Clang, different Clang Tools, and how to use them to their fullest potential.

 

What You Will Learn:

  • Get to grips with compiler architecture
  • Gain an understanding of the inner workings of Clang
  • Familiarize yourself with features specific to Clang
  • Investigate various techniques for static code analysis
  • Acquire knowledge on how to use AST matchers
  • Create custom code modification and refactoring tools
  • Explore tools for integrating compiler tools with IDEs

Who this book is for:

This book is for experienced C++ software engineers who have no prior experience with compiler design but want to gain the knoweldge they need to get up and running. Engineers who want to learn about how Clang works and familiarize themselves with its specific features will also benefit from this book.

商品描述(中文翻譯)

提升您的生產力,使用各種編譯器工具,無縫集成到您的IDE中。

主要特點:
- 通過了解C++編程語言的工作原理以及如何使用其高級功能,擴展對C++的理解。
- 探索靜態代碼分析技術,並使用它們創建lint檢查。
- 增強您的IDE以支持高級編譯器工具。
- 購買印刷版或Kindle電子書,包括免費的PDF電子書。

書籍描述:
發現Clang的威力,這是一個以編譯速度和深入的錯誤和警告信息而聞名的多功能編譯器。本書將使您熟悉Clang的功能,幫助您通過創建自定義編譯器工具來利用其性能改進和模塊化功能。

雖然重點是Clang編譯器前端,但本書還涵蓋了LLVM的其他部分,這對於理解Clang的功能至關重要,以跟上不斷發展的LLVM項目。

從LLVM的基礎知識開始,從安裝程序到開發工具,本書將引導您了解Clang的內部架構及其在LLVM中的重要作用。隨著進展,您還將通過C++模塊和頭文件映射等功能來優化編譯性能。

後面的章節涵蓋了使用Clang/LLVM開發的工具,包括用於linting的clang-tidy,重構工具和IDE支持,並提供了許多示例來說明材料。

通過閱讀本書,您將對Clang、不同的Clang工具以及如何充分利用它們有著扎實的理解。

您將學到什麼:
- 瞭解編譯器架構
- 理解Clang的內部運作
- 熟悉Clang特定的功能
- 探索各種靜態代碼分析技術
- 獲取如何使用AST匹配器的知識
- 創建自定義代碼修改和重構工具
- 探索將編譯器工具與IDE集成的工具

本書適合對編譯器設計沒有先前經驗但希望獲得所需知識的有經驗的C++軟體工程師。希望了解Clang的工作原理並熟悉其特定功能的工程師也會從本書中受益。