The difference between programming languages
Why do you want to program? If you want a computer to do what you want, you need to use a language that the computer can understand. The computer can understand the binary, but it is too inefficient to develop. So the best way is to enter simple instructions, and the computer translates the instructions into a binary that the computer can understand.
What programming languages are there?
Computer language is divided into: machine language, assembly language, high-level languages
Machine language
Machine language is a language that can be directly understood by a computer, that is, a language composed of all instructions. Machine language editing program for the target program, only the target program can be recognized and executed by the computer!
The advantages are: the comparison of the lower level, the implementation of high efficiency, the computer can directly understand the instructions.
Disadvantage is: low development efficiency
Assembly
Assembly language is the essence of machine languages, are directly to the hardware operation, but the instruction using the abbreviation of English identifiers, easier to identify and memory. The programmer is required to write each step of the operation in the form of a command.
The advantages are: relative to the bottom, high efficiency of execution.
Disadvantage is: low development efficiency
Advanced language
The high-level language and assembly languages not only combine many of the relevant machine instructions into a single instruction, but also remove details that are not related to the operation but are irrelevant to the completion of the work!
High-level language programming program can not be directly recognized by the computer, must be converted to be executed!
By conversion high-level languages can be divided into: compilation classes and interpreting classes
Compile class: Refers to the application source code before the execution, the program source codes translated into machine language. The target program can be executed independently of its own language locale (the compiled executable file, which is the binary machine code that the computer can understand) executes the program and the source code is separated.
The advantages are: high development efficiency, fast execution speed,
The disadvantage is: once the execution program needs to be modified, the source code must be modified, cross-platform poor, multiple platforms need to develop different versions, high development costs!
Interpretation class: Execution is equivalent to simultaneous translation, and the application source code is translated into the target Code (machine language) on one side and executed on the other. As a result, it is inefficient to produce separate execution files and applications cannot be separated from the translator.
The advantages are: high development efficiency, good cross-platform, a code can be used everywhere.
The disadvantage is: slow execution, rely on the translator!
The difference between programming languages