Header Ads

HISTORY OF PROGRAMMING LANGUAGES

 History of Programming LANGUAGES

Earlier the computer programs were written in the actual language of the computer.

The first known programming languages were complicated machine codes that were manually inputted into early computing machines. As you'll discover, computer programming developed quickly from machine codes to fully automated human-readable code.

Nowadays the programmer writes his/her program in a programming language that is relatively easy to learn and error-free.

*These languages can be considered as,

01. Machine Language

02. Assembly Language

03. High-level Language

Machine Language

Machine language or machine code is a low-level language comprised of binary digits(1 and 0) binary digits corresponding to the "on" and "off" eletricle states in the computer. high-level languages such as C++ and Swift must be compiled into machine language before the code is run on a computer.

Machine code is not really readable by humans and humans can only do trivial things which it but all software is eventually turned into the machine before it's sent to the CPU.

While machine code is technically comprised of binary data, it may also be represented in hexadecimal values. for example, the letter "Z" which is 01011010 in binary, may be displayed as 5A in hexadecimal code.




Assembly Language

An Assembly language is a type of Low-level programming language that is intended to communicate directly with a computer's Hardware. Assembly languages are designed to be readable by humans, and they translate high-level languages into machine language.

Rather than using simply 1s and 0s, Assembly language uses abbreviations or mnemonic codes to replace the numbers: A for "Add", CMP for "Compare", MUL for "Multiply", PUSH for "Push data onto the stack", POP for"pop data  from a stack", and so on

Today Assembly languages are rarely written directly, although they are still used in some niche applications such as when performance requirements are particularly high.

*Following is represent a Hello, World! 32-bit  Assembly for Windows, You can code this in a new text file and save it as a (.asm ) extension.



High-Level Language

A high-level language is any programming language that enables the development of a program in a much more user-friendly programming context and is generally independent of the computer's hardware architecture.

A high-level language has a higher level of abstraction from the computer and focuses more on the programming logic rather than the underlying hardware components such as memory addressing and register utilization. 

*BASIC,C,C++,Java,Python are popular example for high-level languages.


*A few distinct features of high-level languages:
#Have an extensive vocabulary of words, symbols, and sentences.
#As they are problem-oriented the programmer is able to work independently of the machine.
#Aset of rules must be obeyed when writing the source program, similar to rules of grammar in writing English.


*Example of Hello, World! In high-level language 



**Machine, Assembly,High-level languages 👇Watch this videos👀



















No comments

Powered by Blogger.