A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or code that a computer's processor uses.Typically, a programmer writes language statements in a language such as Pascal or C one line at a time using an editor.he file that is created contains what are called the source statements. The programmer then runs the appropriate language compiler, specifying the name of the file that contains the source statements.