Native machine code generation

Hi,

I'm currently developing a small compiler for a custom DSL. After
following all the steps in the Kaleidoscope tutorial, the program
executes fine in the JIT. Now I want to generate native machine code,
to create a standalone executable. Searching through the
documentation, I was not able to find out how this can be done... Any
pointers to documentation or source code are hugely appreciated.
Thanks!

Regards,

Jörg