Skip to Main Content
Getting started with LLVM core libraries
book

Getting started with LLVM core libraries

by Bruno Lopes, Rafael Auler
August 2014
Beginner to intermediate content levelBeginner to intermediate
314 pages
7h 57m
English
Packt Publishing
Content preview from Getting started with LLVM core libraries

Generating a Clang cross-compiler

Clang dynamically supports the generation of code for any target, as seen in the previous sections. However, there are reasons to generate a target-dedicated Clang cross-compiler:

  • If the user wishes to avoid using long command lines to invoke the driver
  • If a manufacturer wishes to ship a platform-specific Clang-based toolchain to its clients

Configuration options

The LLVM configure system has the following options that assist in cross-compiler generation:

  • --target: This option specifies the default target triple that the Clang cross-compiler generates code for. This relates to the target, host, and build concepts we defined earlier. The --host and --build options are also available, but these are guessed by the configure ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries

LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries

Min-Yih Hsu
LLVM Cookbook

LLVM Cookbook

Mayur Pandey, Suyog Sarda
LLVM Essentials

LLVM Essentials

Suyog Sarda, Mayur Pandey
CMake Cookbook

CMake Cookbook

Radovan Bast, Roberto Di Remigio

Publisher Resources

ISBN: 9781782166924Supplemental Content