title: LLVM - linking problem
body: <p>I am writing a LLVM code generator for the language Timber, the current compiler emits C-code. My problem is that I need to call C functions from the generated LLVM files, for example the compiler has a real-time garbage collector and i need to call functions to notify when new objects are allocated on the heap. I have no idea on how to link these functions with my generated LLVM files. </p>
  
  <p>The code generation is made by generate .ll-files and then manually compile these. </p>
  
  <blockquote>
    <p>I'm trying to call an external function from LLVM but i have no luck. In the examples I've >found only C standard functions like "puts" and "printf" are called, but I want to call a >homemade function. I'm stuck.</p>
  </blockquote>