博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
gcc汇编汇编语言_什么是汇编语言?
阅读量:2518 次
发布时间:2019-05-11

本文共 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:

汇编语言主要用于以下情况:

  • There is a need to use CPU instructions not available in higher-level languages.

    需要使用高级语言中没有的CPU指令。
  • There is no high-level language to program a certain types of processors.

    没有用于对某些类型的处理器进行编程的高级语言。
  • Implementing a compiler for a higher level language on a new ISA.

    在新的ISA上为高级语言实现编译器。

翻译自:

gcc汇编汇编语言

转载地址:http://uqrwd.baihongyu.com/

你可能感兴趣的文章
多Form界面控件状态变化问题分析
查看>>
面试记-(1)
查看>>
压力测试 相关
查看>>
MyBatis 通过 BATCH 批量提交
查看>>
android update automatically ( android 自动升级)
查看>>
session cookie
查看>>
POJ 1222 EXTENDED LIGHTS OUT(翻转+二维开关问题)
查看>>
【BZOJ-4059】Non-boring sequences 线段树 + 扫描线 (正解暴力)
查看>>
几种简单的负载均衡算法及其Java代码实现
查看>>
TMS3705A PCF7991AT 线路图
查看>>
安装Hadoop
查看>>
[BZOJ2282][Sdoi2011]消防
查看>>
supervisor配置详解(转)
查看>>
ABP框架系列之十一:(AspNet-Core-ASPNET核心)
查看>>
复习一些编译原理
查看>>
新手必看:生成对抗网络的初学者入门指导
查看>>
2019年上半年收集到的人工智能强化学习干货文章
查看>>
jeesite快速导入到myeclipse
查看>>
卷积神经网络CNNs的理解与体会
查看>>
e2e 自动化集成测试 架构 实例 WebStorm Node.js Mocha WebDriverIO Selenium Step by step (六) 自动化测试结构小节...
查看>>