Sometimes we want to make our Mathematica code run faster by writing some computationally intensive part of the code using C/C++. If the code itself is simple enough, we can use Compile to have Mathematica generate compiled C code automatically. But in more complex case, Compile will not work and we need LibraryLink.