0% found this document useful (0 votes)
14 views

What Is Compiler?: Translated by Compiler Object Code Source Code

A compiler translates source code into object code in one pass by scanning the entire source code. An interpreter converts and executes source code line by line. An assembler converts assembly language into machine code. Object code is the output of a compiler and is almost machine code, while an executable is a compiled program that can run independently with a user interface.

Uploaded by

Agrippa Mungazi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

What Is Compiler?: Translated by Compiler Object Code Source Code

A compiler translates source code into object code in one pass by scanning the entire source code. An interpreter converts and executes source code line by line. An assembler converts assembly language into machine code. Object code is the output of a compiler and is almost machine code, while an executable is a compiled program that can run independently with a user interface.

Uploaded by

Agrippa Mungazi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

What is compiler?

Compiler translates source code written in a high level programming language to object code which
can be saved as an object code file and later run to execute the program. Compiler does this by
scanning through the source code in one run.
What is interpreter?
Interpreter converts source code written in a high level programming language to machine language
line by line and executes each line.
What is an assembler?
Assembler converts assembly language code into machine language.
What is object code?
Object code is the product obtained when source code is translated by a compiler. Object code may
almost be machine code or close to machine code.

Source Code

Assembly Code

Translated by Compiler

Object Code

Translated by Interpreter

Machine Code

Translated by Assembler

What is an executable?
This is a compiled program which has a user interface and can run independently.

You might also like