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

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
主站蜘蛛池模板: 雷山县| 林口县| 洛川县| 古浪县| 海兴县| 老河口市| 邻水| 剑阁县| 云阳县| 锦屏县| 西充县| 隆德县| 马鞍山市| 英吉沙县| 方城县| 吉首市| 探索| 成安县| 邵阳县| 远安县| 根河市| 五大连池市| 沙河市| 湖口县| 仁怀市| 克什克腾旗| 宜阳县| 芦山县| 桓仁| 岑溪市| 晋中市| 巴楚县| 凌云县| 贵溪市| 新巴尔虎右旗| 汝南县| 湾仔区| 呼和浩特市| 乌什县| 宁阳县| 曲阜市|