Assembly code vs Machine code vs Object code?

后端 未结 10 2012
执笔经年
执笔经年 2020-11-27 09:11

What is the difference between object code, machine code and assembly code?

Can you give a visual example of their difference?

10条回答
  •  不知归路
    2020-11-27 09:35

    Assembly is short descriptive terms humans can understand that can be directly translated into the machine code that a CPU actually uses.

    While somewhat understandable by humans, Assembler is still low level. It takes a lot of code to do anything useful.

    So instead we use higher level languages such as C, BASIC, FORTAN (OK I know I've dated myself). When compiled these produce object code. Early languages had machine language as their object code.

    Many languages today such a JAVA and C# usually compile into a bytecode that is not machine code, but one that easily be interpreted at run time to produce machine code.

提交回复
热议问题