Dear All,
Did anyone read these 2 books?
https://www.packtpub.com/application-development/llvm-cookbook
|
LLVM Cookbook | PACKT Books
Over 80 engaging recipes that will help you build a compiler frontend, optimizer, and code generator using LLVM
|
https://www.packtpub.com/application-development/getting-started-llvm-core-libraries
|
Getting Started with LLVM Core Libraries | PACKT Books
Get to grips with LLVM essentials and use the core libraries to build advanced tools
|
Hi Marwa,
The second book is useful. I use it often.
The book is exactly what is written in its title: getting started. It give basics of each major part of LLVM. After reading it you will be able to build it from scratch. What is most important the book shows in details how components of LLVM are built into a compiler toolchain: from front-end (clang) to back-end (optimizer and code generation). It's demonstrated that the LLVM framework is designed as a perfect modular system which allows easily adapting it for the custom projects.
There is lack of details of LLVM structures, API and design decisions. I guess they were limited by the size of the book and time.
Anyway this is a good book to quickly start digging into LLVM.
Kind regards,
Evgeny Astigeevich
The book is exactly what is written in its title: getting started. It give basics of each major part of LLVM. After reading it you will be able to build it from scratch. What is most important the book shows in details how components of LLVM are built into a compiler toolchain: from front-end (clang) to back-end (optimizer and code generation). It's demonstrated that the LLVM framework is designed as a perfect modular system which allows easily adapting it for the custom projects.