Software Engineers [hardware] of compilation

Many software engineers have a language misunderstanding of hardware, the hardware may be listening to Big Brother buddy said. That will have to learn hardware assembly language, assembler? It was engaged in the dead language, like hieroglyphics. Actually not, today, I can help you clarify it.
First, the hardware is not the only assembler language, C language can be, can also be a python, or even other languages, such as the now more popular arduino. But no matter what the language, it can be converted into assembly language, and eventually compiled into machine language.
Secondly, although the assembly language high operating efficiency, but it is not just a compilation of some efficiency are high, the key is we coding engineers, their experience and wisdom to make the code with high efficiency.
Third, the assembly language can be embedded in high-level languages, that is, with a mixture of two, so has the advantage, for example, some require high precision timers Dian microsecond level, if high-level language, there will be a lot of redundant instructions these redundant instructions to write programs and compile convenience, but it will take some time, which will bring some of the results of the timing error. In order to reduce errors as much as possible, while the convenience of full high-level languages, assembly language embedded in the high-level language compiler is mixed in a generic Dian effective way.
Fourth, assembly language is not our imagination so obscure, on the contrary, it is also very interesting, and more directly, which directly operate the machine instructions that operate directly on the register, but each machine instruction is not the same because the single-chip, assembler statements will be some difference, but the overall look very much the same.
Whole, the play only if the hardware can not need to know assembler, if they want a high performance requirements or relatively low cost of the product, learn a little compilation is necessary.

Guess you like

Origin blog.csdn.net/wwwmagic/article/details/91491439