Fundamentals of Programming and Language Processors

rakeshkumarrnew 39 views 10 slides Jun 08, 2024
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

Fundamentals of Programming and Language Processors


Slide Content

micro skill an ed-tech platform

What is a Programming Language ? A Program is a set of instructions. Programming is giving a set of instructions to a computer to execute. Programming languages are the tools we use to write instructions for computers to follow. Computers thinks or works in binary digits of 1s and 0s.

What is a Programming Language ? Programming languages allow us to translate the 1s and 0s into something that humans can understand and write. A programming language is made up of a series of symbols that allow humans to translate our thoughts into instructions computers can understand. Programming languages fall into two major types — low-level and high-level.

Low – Level Language They are closer to machine code, or binary. They are difficult for humans to read. They are fast They offer precise control over how the computer will function. they’re still easier to understand than 1s and 0s High – Level Language They are closer to Human languages used for communication. They use words that are closer to the words we use in our everyday lives. they’re easier to program than low-level programming languages they do take more time to translate into machine code for the computer.

Nowadays, Computers have become more powerful. The difference in runtime between low-level and high-level programming languages is often only milliseconds. As result, high-level languages is used in most scenarios.

Language Processor The program written in Higher level language is called Source Code. But we cannot execute this Source Code directly in computer. So we have to convert it into Machine Language Code. We need some special translators which are programs basically written in Machine Language Code. And these translators are called Language Processors.

Language Processor There are 3 types of Language Processors.

Types of Language Processor Compiler It is used for Higher Level Language. It reads and execute whole program in once and then throw errors if any occurs. Higher Level Language which uses compilers are: C, C++, C#, Pascal, Java and more. 2. Assembler It is used for Assembly Level Language. It reads Assembly Level Language instructions from given input.

Types of Language Processor 3. Interpreter It is used for Higher Level Language. It reads and execute source code line by line and throws error after every line if any occurs. Higher Level Language which uses interpreter are: Ecmascript , VB Script, Python, Perl and more.

Thank You !