• Central Processing Unit (CPU)
    • Control Unit (CU)
    • Arithmetic/Logic Unit (ALU)
    • Registers
  • Memory Unit
    • Cache
    • RAM
  • Input/Output Devices
    • Mass Storage Unit
    • Keyboard
    • Display

Cache

LevelDescription單位
Level 1 Cache位於CPU核心 最快的記憶體kb
Level 2 Cache所有CPU共享mb
Level 3 Cache比前兩個都慢也都大mb

RAM

x32 時 位置從 0x000000000xFFFFFFFF
x64 時 位置從 0x00000000000000000xFFFFFFFFFFFFFFFF

Segments

Stack

後進先出

Heap

可以隨意存取,比 Stack慢

Data

存放變數
.bss:存放未分配的變數

Text

主要的 asm 會載入到這裡

each application is allocated its Virtual Memory when it is run

Instruction Cycle 指令週期

Fetch

Instruction Address Register 中取得下一個指令的位置

Decode

得到指令並解碼

Execute

執行

Store

存在目標位置