zoukankan      html  css  js  c++  java
  • Assembly Language

    Programming in machine language can be very tedious and error prone. Instead of using ones and zeros, an assembly language has an advantage, because it uses mnemonics (abbreviations) for the instructions and variable names for memory locations, instead of ones and zeros. There is also a one-to-one correspondence between the instructions in assembly language and in machine language. Programs can be written more easily in assembly lan-guage and do not have many of the disadvantages of programming in machine language.The advantage of programming in assembly language over a high-level language is that one can gain a very detailed look at the architecture of a computer system and write very efficient programs, in terms of both increasing speed and saving memory.

    Unlike programs in high-level languages, the operands of arithmetic instructions are restricted; they must be from a limited number of special locations built directly in hardware called registers. Registers are primitives used in hardware design that are also visible to the programmer when the computer is completed, so you can think of registers as the bricks of computer construction. A bus is a collection of data lines that is treated together as a single logical signal.

    CPU's major structural components

    • Control unit: Controls the operation of the CPU and hence the computer

    • Arithmetic and logic unit (ALU): Performs the computer’s data processing functions

    • Registers: Provides storage internal to the CPU

    • CPU interconnection: Some mechanism that provides for communication among the control unit,ALU, and registers

  • 相关阅读:
    codevs2034 01串2
    codevs2622数字序列( 连续子序列最大和O(n)算法)
    codevs3008加工生产调度(Johnson算法)
    codevs1955光纤通信(并查集)
    codevs4203山区建小学
    codevs2618核电站问题
    常用端口
    ntp时间同步服务器
    date linux系统校正时间
    用户切换
  • 原文地址:https://www.cnblogs.com/007beta/p/3848837.html
Copyright © 2011-2022 走看看