This is a question that I\'ve always wanted to know the answer, but never really asked.
How does code written by one language, particularly an interpreted language, get c
If you're actually looking for tools to do such a thing, a la Adam's response, see swig.