To translate all the source code of a program from a high-level language into object code prior to execution of the program.