The purpose of an assembler is to translate assembly language into object code. What is the function of assembler and compiler? An interpreter is a software that translates a high level language program into machine language while an assembler is a software that converts programs written in assembly language into machine language. How are compiler interpreter and assembler related?Ī compiler is a software that converts programs written in a high level language into machine language. Programming languages like C, C++, Java use compilers. Programming languages like JavaScript, Python, Ruby use interpreters.
Generates Object Code which further requires linking, hence requires more memory. No Object Code is generated, hence are memory efficient. What are the similarities and differences between a compiler and an interpreter?