Microchip Technology Interview Question

How compiler works, explain it with steps