Briefly explain high-level programming languages ​​and low-level programming languages.

Tram Ho

Translated from the article “低 水準 言語 と 高 水準 言語 と は? 5 分 で わ か り や す く 解説!”

Depending on the characteristics, programming languages ​​can be divided into high-level programming languages ​​and low-level programming languages.

So, what is the high / low standard for programming languages, and what are the advantages of each language?

In the following article, I will explain in an easy way to understand the 2 issues mentioned above.

1.Standard programming language

The standard classification of real programming languages ​​is very simple.

A language close to the computer language is considered a high-level programming language; conversely, languages ​​close to the natural language of humans will be called higher-level programming languages.

The closer the language is to the human language, the higher its level?

Low-level programming language, English is low-level programming language. The lower order here refers to the language being of a lower level, in other words, the language of recording and giving more detailed and specific instructions for computer operations.

On the other hand, high-level languages, or high-level programming languages, are languages ​​that belong to a higher level, more detailed and specific instructions that will be handled by the compiler.

So the standard here is the dimension of processing?

The word dimension that I use in the explanation above can be a little confusing. The dimension here is a little different from the Dimention of 2D, 3D that you are still familiar with in math. Dimension refers to the level at which an object is viewed.

Consider, for example, the tier tier of a potato chip, for example.

Examining it from the molecular and atomic perspective will be considered to be observed at the lower level.

So, the same is true for the computer tier.

2.Low-level programming language (low-level programming language)

Among programming languages, Assembly language is called a prime example for low-level programming languages. It is the common name for languages ​​other than machine language, but very close to machine language.

Assembly language is a version that is easier to understand for humans than the language of computers is only composed of two states with electricity (1) and no electricity (0).

Characteristics and advantages of low-level programming languages

Low-level languages ​​such as Machine language and assembly language have the following characteristics and advantages:

  • Easy to understand computer: The computer can immediately understand and execute instructions written in machine language. In contrast, for humans, it’s hard to imagine what’s going on
  • Can write the specific processing for each platform
  • It is possible to perform operations at the CPU level such as manipulating memory, controlling IO

An example of a program written in assembly language

An example of a program written in machine language:

Do you find it difficult to understand? This is the world of low-level programming languages

3. High-level programming language programming high-level programming language)

In contrast to low-level programming languages, high-level programming languages. Currently, most programming languages ​​are classified in this group.

Compared to other programming languages, the C language level is lower, however, it is still classified as a high-level programming language.

Features and advantages of high-level programming languages:

  • Easy to understand for humans: Due to being written closer to the natural language of humans, for us, of course, higher-level programming languages ​​will be easier to understand. In fact, when looking at a piece of code written in a high-level programming language, not everyone understands, however, when compared to assembly language and machine language, everyone must agree that high-level language. Much easier to understand.
  • Can rely on existing processes to set up new processes
  • There is no need to pay attention to low-level operations such as memory control

An example with a program written in C language

Write programs in Java

4. Which language is harder to learn? Low level programming language, of course

Of course, learning a low-level programming language is much more difficult than a high-level language. You need to pay attention to memory control too, so of course the amount of knowledge you need to learn will increase. And like the example I’ve just given above, learning to understand the source code of machine language and thinking needs “tremendous energy” is enormous. I don’t know how you feel, but I am absolutely not motivated enough to pursue this kind of language.

Surely we all agree that higher-level programming languages ​​are friendly and closer. For example, in Python, Java, etc., the words #include, #define are all derived from English, just understand English, you can visualize their meaning roughly, right? The compiler has to translate the commands you write into machine language to make the computer execute.

5. Conclusion:

You must have understood the cascading standard in programming languages. For those who are just beginning to learn programming, I think you should try the high level programming language first. However, if you find lower-level programming languages ​​much more interesting, or determined to conquer machine language, I will not prevent it. But please do not let yourself become a robot!

Well, speaking of robots, recently AI has been a very hot industry, right? Look for more on this interesting field if you want!

Chia sẻ bài viết ngay

Nguồn bài viết : Viblo