What is a computer programming language?

HomeProgramming Language

What is a computer programming language?

C++ full tutorial | How to start C++ | Part 001
C++ Lesson 4 – Get ready for the first program
C++ Lesson 5 – Get ready for the first program – Part 2

Different nations of the world use different languages ​​to communicate. Likewise, computers use their own language for communication. This language is called binary. It is difficult for us to understand binary and the computer cannot understand our language. A computer programming language is used to overcome this weakness.

The following table shows how computer programming languages ​​and their names were born.

programming language names

In addition, there are a large number of computer programming languages. But each of these languages ​​has some keywords, symbols, and syntax. Furthermore, they vary from language to language.

High-level and low-level programming languages

The computer programming languages ​​of the world can be divided into two main categories. If it’s so,

High-level programming languages
Low-level programming languages

programming language types

High-level programming languages

If the words used in a computer programming language are similar to the words used daily by humans and there is no major conflict with the vernacular in how they are used, it is called a high-level programming language. For example Java, Visual Basic, C ++, VB.Net.

Low-level programming languages

Low-level languages ​​fall into two categories, namely machine code, and assembler. When we create a program using a high-level programming language, when it is executed, it is first converted into machine code.

Assembler language is designed to work with a computer’s operating system. Although it is difficult to write a program using the Assembler language, it is very fast to implement.

The commands used in low-level languages ​​are just a collection of letters, not the familiar English words. Examples of low-level languages ​​are Asm, mov, add, jnz, dec.

This figure shows that even though humans write programs using high-level languages, the computer understands them in low-level languages. Now we need to translate the high-level languages ​​we write into low-level languages.

Converting a high-level language to a low-level language.

This conversion process can be described in two parts.

Compiler
Interpreter

programming language sub topics

Compiler

There are two types of translators. When the story is written first of a kind, they make mistakes in the story and then translate the whole story into another language. The speaker must read the translated story.

In the category called Compiler, one of the first is to write the program. We call it source code. Here the whole program is converted to the same machine code where we show the list of errors in each program. When these errors are corrected and compiled again, the compiled program is received. Now even without that original source code we can run the program and get what we need.

But if we somehow want to change command in a program we have written, it cannot be done using the compiled program. Again we need to get the source code. You have to make the necessary changes and compile it again and use the modified program.

For example, we can take Turbo Pascal, Turbo C ++.

interpreter

Imagine that during the translation the speaker is speaking without looking at a piece of paper. In those moments the translator cannot even think of translating the whole story. Because the whole story cannot be translated immediately. All you have to do is translate line by line the speaker speaks in another language according to the translator’s needs. The mistake that can easily cause your request to be denied is to fail.

The same thing happens when a program written in a high-level language using interpreters is converted into machine code. We don’t really have to do a special translation like in the compiler. When we write a program in a high-level language and execute it, line by line the interpreter converts it into machine code. Then that inverted line is activated. If there is an error in a line here, it will only be known when that line appears.

GW-BASIC, a language used a long time ago, is a good example of an interpreter.

Compiler and interpreters

When translating from a compiler, we can run the program we compiled as many times as we want after doing it just once. This is why this system is getting faster. But when we do this with an interpreter, it takes a while because we have to be an interpreter every time we run the program. The most advanced languages ​​used today (Visual Basic, Java) have both of these characteristics.

Java

programming language java

Java was invented in 1991 by James Gosling. It was part of a project led by Sun Microsystems. This Java was developed by removing some features of the C ++ programming language. Java is associated with the OOP concept or object-oriented programming.

C

programming language C

The C language was first created and introduced by Dennis Ritchie. It was called DEC PDP-11 and was used in the Unix operating system. The C language is the result of a development process in another language. That language is called BCPL. The BCPL language was created by Martin Richards. He was influenced by the computer programming language B, created by Ken Thompson. The B programming language was used to create the C language in the 1970s.

A few years later a new C language version was released with the Unix operating system. It was the first edition and was presented by Brian Kernighan and Dennis Ritchie (Englewood Cliffs, N.J. Prentice-Hall, 1978).

In 1995, the C programming language was incorporated into the International Standards Organization (ISO) Convention and consequently became known as the ANSI / ISO Standard for C. 1995, new library functions were added to the C language. 1989, the C language was introduced as a subset of C ++ and a new version, C89, was introduced. Later a new version was introduced in 1999 as C99 with new features.

C++

C++

C ++ is a language that can write a series of instructions that a computer can understand. But the computer does not immediately understand the series of instructions written in C ++. Because as we have heard since childhood, a computer can only understand binary [1,0] Even though it was like that when I was a child, now the computer understands more languages. These are called machine languages.

I think most people here use computers with Intel processors. More seriously, computers with Intel Architecture 32-bit (i386, x86-32, x86) processors. X86 machine language is the language understood by the computers we use now.

COMMENTS

WORDPRESS: 0
DISQUS:
error: Content is protected !!