本文共 1819 字,大约阅读时间需要 6 分钟。
gcc汇编汇编语言
Assembly Language is the interface between higher level languages (C++, Java, etc) and machine code (binary). For a compiled language, the compiler transforms higher level code into assembly language code.
汇编语言是高级语言(C ++,Java等)和机器代码(二进制)之间的接口。 对于编译的语言,编译器将高级代码转换为汇编语言代码。
Every family of CPUs define their own Instruction Set Architecture (ISA), a set of basic instructions that the CPU can execute without needing further translation or transformation. The compiler decomposes composite higher level composite instructions into operations available in the ISA.
每个CPU系列都定义了自己的指令集体系结构(ISA),这是CPU可以执行而无需进一步转换或转换的一组基本指令。 编译器将复合高级复合指令分解为ISA中可用的操作。
Some of the more common ISAS in use today include MIPS, ARM, Intel x86, RISC-V.
今天使用的一些较常见的ISAS包括MIPS,ARM,Intel x86,RISC-V。
Assemblers decompose Assembly instructions into their respective binary representations and replace the generic addresses of assembly code with explicit register and memory addresses of your computer.
汇编程序将汇编指令分解为各自的二进制表示形式,并用计算机的显式寄存器和内存地址替换汇编代码的通用地址。
Code where execution time and control is crucial can be written directly in assembler. This, however, comes at the cost of prolonging development time, and making development harder. It should also be noted that there has been a large amount of research going into making compilers optimize the code that is generated automatically.
执行时间和控制至关重要的代码可以直接在汇编器中编写。 但是,这是以延长开发时间和使开发更加困难为代价的。 还应注意,已经有大量研究使编译器优化自动生成的代码。
Assembly language is primarily used in the following situations:
汇编语言主要用于以下情况:
翻译自:
gcc汇编汇编语言
转载地址:http://uqrwd.baihongyu.com/