A4: Compilers provide various functions such as syntax debugging, optimization and translation. Syntax debugging is the process by which a compiler looks for syntactic errors in a program code. Optimization involves improving the programming code to improve execution. Translation involves converting the source code into an executable machine language.