Nokia Interview Question

Explain how a compiler works.