Compiling and linking with make
March 2nd, 2017 (14:00 - 16:00), ICT training room 204, Central Library
This class presents tools indispensable for working with a third party software packages and for developing a larger software project.
Compiling and linking
We will discuss compiling and linking to code libraries with GCC and Intel examples. Regardless whether one uses compiled languages or not, they are likely to be faced with compiling and installing a third-party scientific software at some point during their research. We are going to look at the compilation command, at different kinds of files generated during compilation and at the basic options that can be changed during the process.
Most scientific packages contain multiple code files and dependencies. Building such packages involves multiple steps of compilation and linking to libraries. These steps can be specified in a makefile that is read and executed by the utility. Ultimately, the whole build can be described as a set of operations or rules performed on input files. We are going to examine simple to slightly complicated makefiles during the class.
Part1: GCC project and Intel compiler, from a source code to an executable, key compiler options, hands-on exercise
Part2: make syntax and rules, from simple to not so simple example, hands-on exercise