A computer program is a series of commands that are executed by the computer. However, the computer is only capable of processing binary, i.e. a series of 0s and 1s. Therefore we require a programming language to be able to write commands that the computer can execute, but in a legible manner, i.e. commands that are understood by humans.
These programs are then translated into machine code (in binary) by a compiler.
The method of writing a program is closely linked to the programming language chosen, there being many different types. Furthermore, the compiler should match the chosen language: each programming language has its own compiler (except interpreted languages).
Generally speaking, the program is a simple text file (written using a word processor or a text editor), this is called the source file).
The source file contains lines of program called source code. Once the source file has been completed it must be compiled. Compilation takes place in two stages:
Résultats pour Computer program
Résultats pour Computer program
Résultats pour Computer program
Résultats pour Computer program
Résultats pour Computer program
Résultats pour Computer program