0% found this document useful (0 votes)
3 views10 pages

High and Low Level Languages (First August 2022)

A program is a set of instructions created using programming languages, which can be high-level or low-level. High-level languages are easier to read and portable across different computers, while low-level languages are closer to machine code and harder for humans to understand. Language translators, including compilers, interpreters, and assemblers, convert programming code into machine code, and errors can occur during compilation, execution, or logic processing.

Uploaded by

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

High and Low Level Languages (First August 2022)

A program is a set of instructions created using programming languages, which can be high-level or low-level. High-level languages are easier to read and portable across different computers, while low-level languages are closer to machine code and harder for humans to understand. Language translators, including compilers, interpreters, and assemblers, convert programming code into machine code, and errors can occur during compilation, execution, or logic processing.

Uploaded by

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

What is a program?

► A program is a set of instructions to do


a particular task
How and where do we make
programs?

► We use a programming language to


make a program

► Examples of programming languages

HTML

C++
Java Visual
Basic
High- Level Languages

Programs written in high level languages


are:
► Easier to understand and read as they
are closer to human language.
► Require no knowledge of the hardware
and instruction set of the computer.
► Many high-level programming
languages are portable and can be run
on different types of computers.
► Programs written in a high-level
language can be debugged at the
development stage.
Low-level languages

► Difficult to read and understand by the


humans

► Sometimes referred to as machine –


code ,the binary instructions that a
computer understands.

► They also refer to assembly language


that machine needs to be translated
into machine code.
Assembly Language

An assembly language is a low-level


programming language designed for
a specific type of processor.

► It has machine dependent instructions


► It does not take much space in the primary
memory.
Language Translators

What is language translation?

Converting programming code into machine code – can


be understood by the computer.

03 types of language translators

► Compiler
► Interpreter
► Assembler
Compiler

► Translates a program in a high or low- language


program into a machine code.

► One high level statement can be translated into


several machine code instructions.

► Once translated does not need to be translated


again and again.

► Compiled program can be run directly.


Interpreter

► Translates high level program into a machine


code

► Translates program line by line

► Needs translation every time the program is run

► Interpreted program cannot be run again and


again
Assembler

► Translates program written in assembly language) into


machine code line by line.
► An executable file of machine code is produced

► Assembled programs can be used without an assembler.


Errors

► Syntax Error
When a program is compiled ,a list syntax errors is generated
of there are any. They are removed first and the program is
compiled again to get the output.
► Logical errors
When a program is run and if does not produce the required
output , it means there is a logical error. A program is then
tested with the data to determine the logical error.
► Run Time Error

A runtime error occurs when a program is


syntactically correct but contains an issue that is only
detected during program execution.

You might also like