Evolution of Programming Languages: From Machine Language to High-Level Languages, Essays (university) of Programming Languages

An overview of the evolution of programming languages, starting from machine language and moving on to high-level languages. It covers the concepts of interpreters, compilers, and translators, and introduces the python programming language. Students will learn about the differences between low-level and high-level languages, as well as the various paradigms of programming. The document also includes examples of code in machine language, assembly language, and high-level languages (c and python), and discusses the advantages of functional programming.

Typology: Essays (university)

2018/2019

Uploaded on 12/09/2019

rabab-elkomy
rabab-elkomy 🇪🇬

5

(1)

6 documents

1 / 62

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Programming
Languages
LECTURE 8
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e

Partial preview of the text

Download Evolution of Programming Languages: From Machine Language to High-Level Languages and more Essays (university) Programming Languages in PDF only on Docsity!

Programming

Languages

LECTURE 8

Objectives

Describe the evolution of programming languages from machine language to high-level languages. ❑ Understand how a program in a high-level language is translated into machine language using an interpreter or a compiler. ❑ Learn about computer language paradigms. ❑ Introducing Python programming and arithmetic expressions ❑

Introduction

Introduction  To write a program for a computer, we must use a computer language.  A computer language is a set of predefined words that are combined into a program according to predefined rules (syntax).  Over the years, computer languages have evolved from machine language to assembly languages to high-level languages.

Programming Languages

 Programming language: A set of rules, words, symbols,

and codes used to write computer programs

 To write a program, you need appropriate software for the programming language you will be using 7

Programming Languages

 Categories of programming languages

 Low-level languages: Difficult to code in; machine

dependent

Machine language: 1 s and 0 s Assembly language: Includes some names and other symbols to replace some of the 1 s and 0 s in machine language  High-level languages: Closer to natural languages  Machine independent  Includes 3 GLs (FORTRAN, BASIC, COBOL,C, etc.) and object-oriented languages (Visual Basic, C#, Python, Java, etc.)  Visual or graphical languages: Use graphical interface to create programs 8

Low-Level

Programming

Languages

11 Low-Level Programming Languages Machine language and Assembly language

Code in Assembly Language to Add Two Integers

High-Level

Programming

Languages

Code in High Level Languages (in C)

#include <stdio.h>
int main( )
int num1, num2, sum;
printf("Enter two integers: ");
scanf("%d %d",&num1,&num2);
sum=num1+num2;
printf("Sum: %d",sum);
return 0;

Code in High Level Languages (in Python)

print("Enter two integers: ")

num1=int(input())

num2=int(input())

sum=num1+num

print("Sum: ", sum)

Languages

Translators

Translation

  • Programs today are normally written in one of the high-level languages.
  • To run the program on a computer, the program needs to be translated into the machine language of the computer on which it will run.
  • The program in a high-level language is called the source program.
  • The translated program in machine language is called the object program.