A compiler works a lot like a translator for computers. It takes the language that code is written in and converts it to a different language. Most of the time this means translating a high level (think coding) language into a machine language. Check out chapter one page 6!