官术网_书友最值得收藏!

Chapter 1. Build and Install LLVM

The LLVM infrastructure is available for several Unix environments (GNU/Linux, FreeBSD, Mac OS X) and Windows. In this chapter, we describe the necessary steps to get LLVM working in all these systems, step by step. LLVM and Clang prebuilt packages are available in some systems but they can be compiled from the source otherwise.

A beginner LLVM user must consider the fact that the basic setup for a LLVM-based compiler includes both LLVM and Clang libraries and tools. Therefore, all the instructions in this chapter are aimed at building and installing both. Throughout this book, we will focus on LLVM Version 3.4. It is important to note, however, that LLVM is a young project and under active development; therefore, it is subject to change.

Tip

At the time of this writing, LLVM 3.5 had not been released. While this book focuses on LLVM Version 3.4, we plan to release an appendix updating the examples in this book to LLVM 3.5 by the third week of September 2014, allowing you to exercise the content of the book with the newest versions of LLVM. This appendix will be available at https://www.packtpub.com/sites/default/files/downloads/6924OS_Appendix.pdf.

This chapter will cover the following topics:

  • Understanding LLVM versions
  • Installing LLVM with prebuilt binaries
  • Installing LLVM using package managers
  • Building LLVM from source for Linux
  • Building LLVM from source for Windows and Visual Studio
  • Building LLVM from source for Mac OS X and Xcode
主站蜘蛛池模板: 赣榆县| 安陆市| 菏泽市| 咸宁市| 屯留县| 浦江县| 嘉荫县| 鹰潭市| 赤城县| 博兴县| 河南省| 九龙坡区| 宜章县| 浑源县| 梅河口市| 阳新县| 本溪市| 德庆县| 徐闻县| 武定县| 新丰县| 垦利县| 旅游| 樟树市| 高州市| 武冈市| 体育| 蕲春县| 营山县| 渝北区| 唐河县| 平果县| 二手房| 松溪县| 宜君县| 凤冈县| 南漳县| 黄骅市| 鲁山县| 碌曲县| 分宜县|