Assembler - Comiper
Assembler - Comiper
Assembler
Defination: Assembler (computing), a computer program which translates assembly language to
an object file or machine language format.
1. It translates the mnemonic codes such as PRN, ADD and SUB etc. to machine language code. It translates the
high-level language to assembly language.
2. The program, which executes using assembler, executes faster because it directly converts the source code in
machine language.
Compiler
Defination: A compiler is a computer program (or a set of programs) that transforms source
code written in a programming language (the source language) into another computer language
(the target language), with the latter often having a binary form known as object code.
1.It translates the high-level language to assembly language.
2.It takes the time to execute a program because it first translates the source code into another compiler’s
language and then using assembler converts it into machine language.