Compiler is used to change the high-level language program into machine code at a time. It doesn't needs special instruction to store in a memory, it keeps automatically. The implementation time is less compared to Interpreter.
A compiler is a program that changes a source program written in some high-level programming language (like Java) into machine code for some computer architecture (like the Intel Pentium architecture).