How do programming languages ​​work

merehan
Сообщения: 57
Зарегистрирован: 15 ноя 2022, 02:42

How do programming languages ​​work

Сообщение merehan »

Programming
Techopedia defines programming (English: Programming) as the process in which logic is used to facilitate computational operations and various tasks using a computer.

The process is done using a programming language, and there are many programming languages ​​that differ from each other in terms of applications, scope of use, and writing method.

A program can be defined as a set of ordered commands that a computer follows to perform certain tasks.

The program is placed in a storage medium that the computer can access and read the program from, to execute commands, one after the other, and the data that the programmer wants the computer to process and perform operations on can be stored.

When a programming language is used to write a specific program, the language-specific syntax is adhered to, as well as the various expressions in it. Programming also requires expertise in other areas such as algorithms, for example. Good code written in one programming language can be distinguished from others by four factors, which are as follows:

durability; What is meant by this is the program's ability to deal with errors in a way that allows it to complete its work despite the existence of these errors.

reliability It is reached through good design and appropriate embedding of algorithms. efficacy This is by optimizing the use of resources such as memory and others. Ease of reading the code and the quality of its documentation

How do programming languages ​​work
When writing with a specific programming language, a specific program called an interpreter is used, this program converts the programming language into machine code that the computer can understand.

The programmer writes the code using any text editor in the form of a set of statements, and then uses the compiler for the programming language in which it was written by specifying the name of the file containing the code.

When the compiler is running, the compiler parses the data and makes sure it is written correctly. After that, this code is converted into a so-called object file, which contains a set of commands formulated in machine language that the computer executes.

The compilation step may follow an additional step, which is to merge a number of files that depend on each other, and then output one executable file (English: executable), and this step is called linking (English: Executable). link).

Among the programming languages ​​that work on the same principle are C, C++, Fortran, Swift, and others.

Some programming languages ​​differ in terms of the mechanism of work from what is mentioned, and among these languages ​​is the Java language (English: Java), where the code is converted into certain commands called (in English: Bytecode), and these commands can be executed on any computer that contains a program 'device '. The virtual machine aims to understand these commands and convert them into commands that the computer on which the program is running can understand and execute.

Among the programming languages ​​is also what allows the program to be executed immediately without the need to convert it using a compiler program, where resorting to the use of a program called Interpreter, which converts programming language statements into commands and execute them immediately.

What distinguishes this type of programming language is the ability to stop the work of the program during its execution and modification, which may be with the aim of correcting certain errors in it (English: correction), but these languages ​​are not characterized by the speed of execution that is characterized by programming languages ​​that depend on translation.

TRANSLATED FROM:
شركات تسويق الكترونى
شركة تسويق الكتروني
اعلانات جوجل

Ответить