Technical requirements
You will find the complete code of what we are building in this chapter in the ch3
folder of the GitHub repository of this book: https://github.com/PacktPublishing/LLVM-Code-Generation.
What we build will depend on a few LLVM libraries. Therefore, these libraries will need to be available for linking the final executable code.
You can get them in either of the following ways:
- Building the LLVM core project yourself while making sure you build the backend that matches your computer architecture. Check out the Configuring the build system section in Chapter 1 if you forgot how to do that or have not done so yet, and remember to set the right value for
LLVM_TARGETS_TO_BUILD
! - Downloading the latest LLVM release from https://releases.llvm.org/. Beware that depending on your operating system (OS) and computer, a release may not be available, and you may have to resort to the method described in the first bullet point to get the desired libraries...