Nim compiles to c, hence you can just call c functions. All you need is a signature, which can even be generated automatically from a c header.<p>You can manually allocate memory if you want, and you can also pass pointers, either to manually allocated or gc memory. The gc will not run when c is working, since it is triggered by allocation