A practical guide to building LLVM backend from scratch to unleash the power of next-generation processors and accelerator chips
Key FeaturesBook Description
- Beginner-friendly content to create an LLVM backend from scratch
- Project-driven approach with step-by-step instructions
- Targeting OpenRISC – a famous real-world instruction set architecture
With the advancement of chip manufacturing technology and the ever-growing demands of high-performance AI / ML engines, we have seen an explosive number of ASIC – Application Specific IC – chips showing up on the market to accelerate this technology breakthrough. These new hardwares often have their own Instruction Set Architecture (ISA) that requires completely new compilers to support the software running atop. LLVM, being one of the most popular compiler frameworks, provides tools that make a perfect fit for such needs. And this book serves as a guide to the most essential task of creating LLVM-based compilers for new chips – engineering the compiler backend, which is the foundation of turning any application code into machine-executable instructions.
Readers will learn how to create an LLVM backend for new hardware architectures from scratch. The book will show them how to create a compiler toolchain that turns high-level source code all the way into low-level binary machine code.
By the end of this book, readers are expected to be able to create an LLVM-based compiler toolchain for new hardware architectures.
What you will learnWho This Book Is For
- Develop robust skills to build an LLVM backend from scratch
- Create assemblers and disassemblers using LLVM's infrastructure
- Optimize software for specific hardware in a compiler
- Build a solid knowledge of common compiler backend workflows
- Understand low-level system programming like ABI and calling convention
- Develop capabilities to interpret ISA datasheets and implement them in the compiler
Developers with decent C++ programming experiences should find no problem picking up this title. Basic compiler knowledge is something nice to have, but not required to read this book.
- ISBN13 9781804612675
- Publish Date 4 August 2023
- Publish Status Out of Print
- Out of Print 11 November 2022
- Publish Country GB
- Imprint Packt Publishing Limited
- Format eBook
- Pages 361
- Language English