Unit 6 Compilers Introduction A compiler is a program that reads a program written in one language called the source language and translates it into an equivalent program…