Error, the assembler is not a program written in a mixture of multiple languages. An assembler is a translation program that translates a program written in assembly language into an equivalent machine language program. The input of the assembler is a source program written in assembly language, and the output is a target program expressed in machine language.
Assembly language is a machine-oriented language designed for a specific computer or computer series. It consists of assembly execution instructions and assembly pseudo-instructions.
Although writing programs in assembly language is not as simple and intuitive as high-level programming languages, the assembled target program occupies less memory, has higher operating efficiency, and can directly reference various device resources of the computer. It is usually used to write programs for the core part of the system, or to write program segments that require a lot of running time and require high real-time performance.
Background information
Assembly execution instructions are symbolic representations of machine instructions. The operation codes are represented by mnemonics, and the address codes are directly represented by labels, variable names, constants, etc. express. The assembly execution instructions are translated into machine instructions by the assembler, and the two basically maintain a one-to-one correspondence. Assembly pseudo-instructions, also known as assembly instructions, are used to provide the assembler with user-defined symbols, data types, length of data space, as well as prompt information such as the format and storage location of the target program. Its function is to instruct the assembler how to To assemble. Source codes written in assembly language need to be converted into executable machine code by using the corresponding assembler. This process is called the assembly process.
Many assemblers can recognize labels and symbols that represent addresses and constants, so that characters can be used to represent operands without having to hard-code them. Generally speaking, there is a one-to-one correspondence between a specific assembly language and a specific machine language instruction set.
Many assemblers provide additional support mechanisms for program development, assembly control, and auxiliary debugging. Some assembly language programming tools often provide macros, which are also called macro assemblers.
Assembly language is not widely used for programming like most other programming languages; in practical applications, it is usually used in low-level hardware operations and demanding program optimization. Assembly language is required for drivers, embedded operating systems, and real-time running programs.
Classification
The first high-level assembler is the PL/360 language assembler developed by N. Worth for the IBM360 system. Its characteristic is that the control part of the program is written using high-level language control statements, while the data processing part is written using IBM360 assembly instructions. . Since then, assemblers similar to ALGOL and FAT, similar to FORTRAN, have appeared one after another.
For more related knowledge, please visit: PHP Chinese website!
The above is the detailed content of Is an assembly program a program written in a mixture of multiple languages?. For more information, please follow other related articles on the PHP Chinese website!