The experience of using new poppies with M1 begins to dot the i. These chips are fast. Very fast. But why? What's the magic?
I watched a video on Youtube where the author bought the iMac last year with the maximum configuration. A machine with 40+ Gb of RAM cost him about $ 4000. He watched in disbelief as his hyper-expensive iMac was blown to smithereens by a brand new Mac mini with an M1 on board, which cost about $ 700.
, , 1 Intel . Mac . , ?
, . , Apple 1. :
, 1 ?
Apple , ?
Intel AMD , ?
, . , Apple , . , β1 (very wide instruction decoders)β, β (reorder buffer, ROB)β .. , .
, βWhat Does RISC and CISC Mean in 2020?β. , CPU, :
ISA
(Pipelining)
(load/store)
vs -
, , .
CPU?
, Intel AMD, CPU. βRISC vs CISCβ, , .
CPU - , , , - ALU. ALU , . , CPU. , , . , RISC , 1 :
load r1, 150 load r2, 200 add r1, r2 store r1, 310
r1
r2
- , . RISC , . , CPU. . 150 r1
, 200 r2
. add
. οΏΌ
. , - , , . . - ββ, .
M1 -
, : 1 - CPU. , . CPU - . , 1 - . CPU, GPU, , / , . (system on the chip, SoC).
, - Intel AMD - . .
, Intel AMD . ββ . , , , . CPU.
: CPU. - : .
Apple
, , Apple : . , , , , , CPU .
. GPU - . Nvidia AMD , .
Apple . , 1 :
CPU - ββ .
GPU - , .
ISP - .
(digital signal processor, DSP) - , , .
(Neural processing unit, NPU) - , AI.
(Video encoder/decoder) - .
(Secure Enclave) - , .
(Unified memory) - .
, , 1, . , , . Mac mini 1 , , iMac Intel 1. (heterogeneous) : Apple M1 foreshadows Rise of RISC-V.
(UMA) Apple?
, β (Unified Memory Architecture, UMA)β. , .
. . , β β, β β. . , . , β, β. CPU .
CPU GPU -. : CPU , , . , .
, , . , - , . -, , .
CPU GPU, . GPU ββ, . , GPU CPU. ββ .
- GPU. CPU, . , : . , .
. : - CPU, , PCIe. . , .
(UMA) Apple . :
CPU GPU. . , .
Apple , . (low latency and high throughput). , .
Apple GPU, . ARM , , Intel AMD.
, UMA - , . , , -, , CPU GPU. , , Nvidia , . Nvidia β β - , CPU GPU. Apple Nvidia , .
, Apple. , . Apple , SSD .
SoC ββ, Intel AMD ?
Apple , ? , . -. AMD , β β, Accelerated Processing Unit APU, CPU GPU .
, AMD . SoC - . HP Dell. : , .
ARM , , . ARM SoC , . GlobalFoundries TSMC, AMD Apple.
, - Intel AMD. , . , , CPU .
. SoC . . , CPU, , IO SoC. Intel, AMD, Nvidia SoC Dell, HP .
, Intel AMD SoC. ? . Intel, AMD, Microsoft, .
Apple - . , , Core ML . , Core ML CPU Apple (Neural Engine).
CPU
(heterogeneous computing) - . 1, Firestorm, . ARM , Intel AMD.
Firestorm Intel AMD - Ryzen. , . , Firestorm , . , :
.
.
80- . , . - - . . , , .
, . β β, . , .
β β?
, :
, .
.
, - (thread) . . , , , - . CPU . - , . ββ .
, . . . - , -:
, - .
. .
, . , . , - : - . , . .
ARM 128- . ββ. , 1 , . Are Servers Next for Apple?.
Apple . , - . , . .
. , , 128 - . , .
Out-of-Order
, . Out-of-order execution () , . : Very Long Instruction Word Microprocessors.
, . , . , . , . , , . , . , 1 , 100 .
: , , . . . , .
(databus). , . . , .
, . Out-of-Order-execution. , .
01: mul r1, r2, r3 // r1 β r2 Γ r3 02: add r4, r1, 5 // r4 β r1 + 5 03: add r6, r2, 1 // r6 β r2 + 1
- , . , , . . , .
, . , . , add r4, r1, 5
r1
, . , CPU : - , - .
CPU , , , - , . , . , , .
, : , - , , CPU Out-of-Order-Execution. .
OoOE 1 . , Intel AMD, , Apple. , .
ISA -
. , , ISA. , x86, ARM, PowerPC, 68K, MIPS, AVR .
x86 :
MOV ax, 24
x86 ax
, bx
, cx
dx
( , CPU). ARM :
LDR r0, 24
Intel AMD x86 , 1 Apple - ARM. , . - (micro-ops, ΞΌops). Out-of-Order .
? , . , ARM 32 ( 32 : 0 1), - . .
01: mul r1, r2, r3 // r1 β r2 Γ r3 02: add r4, r1, 5 // r4 β r1 + 5 03: add r1, r2, 1 // r1 β r2 + 1
, 01 03 . r1
. 03 , 02, . , . -, .
-, . ARM - .
CPU - , - - . ISA . , -. ββ , .
CISC , -, . . RISC . , ARM -. .
Intel AMD 1?
, , , ? , - Apple Intel AMD? , -. , , . , . -. , , (decoder).
, -, - 1. ββ Intel 4 . 1 - 8 - , . . , 1 , .
Intel AMD ?
ββ RISC , 1 ARM . , x86 1 15 . RISC - 4 . ? , , ββ , , .
, x86 , . , . Intel AMD : , . , . , - . Apple . , 4 - Intel AMD.
, 1 Firestorm , Intel AMD, .
, CISC -. 86 -, ARM - -. 4 86 - , 8 CPU. , . x86 CISC , -. , -.
, 86 Intel AMD. , 15 - , , .
AMD Zen3 , ?
, AMD Zen3 , 1 Firestorm. - Zen3 5 , Firestorm 3.2 . Zen3 Firestorm, , 60%.
Apple ? - . Apple - , Intel AMD. , Firestorm Zen3, Zen3 . Apple .
Apple , , , .
, AMD Intel :
-, (heterogenous computing) SoC .
CISC , Out-of-Order.
, . , CPU. , . Intel , , GPU SoC.
, . . , Amazon Ampere 128- . , .
Intel AMD, Apple , , . , . , . , , Apple, , , .