Module to system object file?

Is there a quick tutorial or reference on how I go about converting a
Module into an object file for the target platform? I'm looking through
the llc tool source now, but having trouble isolating just the minimum
bits I'd need. So far I've just been using the ExecutionEngine to
execute my code.