汇编语言学习[2018-05-06],第 1 天
由于linux kernel学习中,有大量汇编代码阅读,理解有困难,现进行汇编语言的系统学习,暂停linux kernel学习。
汇编语言学习时长,预计2两个月,具体日程明日规划,先记录当前了解的汇编内容如下:
- 汇编语言的两大语法系:AT&T语法和Intel语法
- linux下汇编工具GNU工具包binutils
- 主流的汇编器:MASM、NASM、GAS
IA-32平台
(Intel Architecture 32-bit简称),分析奔腾4的处理器逻辑结构
- Control unit
- Execution unit
- Registers
- Flags
Control unit
功能:
- Retrieve instructions from memory.
- Decode instructions for operation.
- Retrieve data from memory as needed.
- Store the results as necessary.
NetBurst控制单元架构:
- Instruction prefetch and decoding
- Branch prediction
- Out-of-order execution
- Retirement
Instruction prefetch and decoding
- L2 Execution cache
- Decoder
- L1 Execution cache
Branch prediction unit
- Deep branch prediction
- Dynamic data flow analysis
- Speculative execution
Out-of-order execution engine
- The allocator
- Register renaming
- The micro-operation scheduler
Retirement unit
以下3部分后续学习
- Execution unit
- Registers
- Flags