Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
06_-_ISA_2.pdf
Search
Chen
October 05, 2022
Science
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
06_-_ISA_2.pdf
Chen
October 05, 2022
More Decks by Chen
See All by Chen
Example ROP in MIPS
tiffany_04192
0
66
defense
tiffany_04192
0
84
Dijkstra’s Algorithm
tiffany_04192
0
130
Floyd-Warshall
tiffany_04192
0
100
Topological sort DFS
tiffany_04192
0
100
BFS
tiffany_04192
0
130
DFS
tiffany_04192
0
130
Cache behavior
tiffany_04192
0
95
Cache miss paper
tiffany_04192
0
120
Other Decks in Science
See All in Science
知能とはなにか -ヒトとAIのあいだ-
tagtag
PRO
0
110
Kritische evaluatie van GenAI-output voor literatuuronderzoek
voginip
0
210
「念のためのログ保存」を組織全体でやめるためのポリシーと仕組み作り
i2tsuki
4
350
YouTubeにおける撤回論文の参照実態 / metascience-meetup2026
corgies
3
320
不動産業界における業界特化のデータ整備とAI活用 ─Vertical DataとVertical AI─
estie
1
890
Testing the Longevity Bottleneck Hypothesis
chinson03
0
410
機械学習 - 決定木からはじめる機械学習
trycycle
PRO
0
1.6k
テンソル分解を用いたVisiumデータの高精度・高速デコンボリューション手法
tagtag
PRO
0
100
社内で活躍できるデータサイエンティストになるために
aikinohara
1
130
Bリーグのショットデータを活用した得点期待値モデルの構築 / Construction of expected points model using shot data of B.LEAGUE
konakalab
0
190
データベース04: SQL (1/3) 単純質問 & 集約演算
trycycle
PRO
0
1.6k
チュートリアル:世界モデル
hf149
0
2.1k
Featured
See All Featured
Design in an AI World
tapps
1
280
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
4 Signs Your Business is Dying
shpigford
187
22k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
160
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.7k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
200
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
260
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Into the Great Unknown - MozCon
thekraken
41
2.7k
Designing Powerful Visuals for Engaging Learning
tmiket
1
490
Transcript
24 Executing Add Register Value $0 0000 0000 $1 1234
5678 $2 C001 D00D $3 1BAD F00D $4 9999 9999 $5 ABAB ABAB $6 0000 0001 $7 0000 0002 $8 0000 0000 $9 0000 0000 $10 0000 0000 $11 0000 0000 $12 0000 0000 … … PC 0000 1000 Address Instruction 1000 add $8, $4, $6 1004 add $5, $8, $7 1008 add $6, $6, $6 100C … 1010 … PC tells us where to execute next RegFile Memory
25 Executing Add Register Value $0 0000 0000 $1 1234
5678 $2 C001 D00D $3 1BAD F00D $4 9999 9999 $5 ABAB ABAB $6 0000 0001 $7 0000 0002 $8 0000 0000 $9 0000 0000 $10 0000 0000 $11 0000 0000 $12 0000 0000 … … PC 0000 1000 Address Instruction 1000 add $8, $4, $6 1004 add $5, $8, $7 1008 add $6, $6, $6 100C … 1010 … Add reads its source registers, and uses their values directly (“register direct”) 9999 9999 0000 0001 9999 999A
26 Executing Add Register Value $0 0000 0000 $1 1234
5678 $2 C001 D00D $3 1BAD F00D $4 9999 9999 $5 ABAB ABAB $6 0000 0001 $7 0000 0002 $8 9999 999A $9 0000 0000 $10 0000 0000 $11 0000 0000 $12 0000 0000 … … PC 0000 1000 Address Instruction 1000 add $8, $4, $6 1004 add $5, $8, $7 1008 add $6, $6, $6 100C … 1010 … Add writes its result to its destination register
27 Executing Add Register Value $0 0000 0000 $1 1234
5678 $2 C001 D00D $3 1BAD F00D $4 9999 9999 $5 ABAB ABAB $6 0000 0001 $7 0000 0002 $8 9999 999A $9 0000 0000 $10 0000 0000 $11 0000 0000 $12 0000 0000 … … PC 0000 1004 Address Instruction 1000 add $8, $4, $6 1004 add $5, $8, $7 1008 add $6, $6, $6 100C … 1010 … And goes to the sequentially next instruction (PC = PC + 4) Why 4? Counts in bytes (8 bits) 32-bit system à 32/8 = 4 bytes per insn
28 Executing Add Register Value $0 0000 0000 $1 1234
5678 $2 C001 D00D $3 1BAD F00D $4 9999 9999 $5 9999 999C $6 0000 0001 $7 0000 0002 $8 9999 999A $9 0000 0000 $10 0000 0000 $11 0000 0000 $12 0000 0000 … … PC 0000 1008 Address Instruction 1000 add $8, $4, $6 1004 add $5, $8, $7 1008 add $6, $6, $6 100C … 1010 … We set $5 equal to $8 (9999 999A) + $7 (2) = 9999 999C and PC = PC +4
29 Executing Add Register Value $0 0000 0000 $1 1234
5678 $2 C001 D00D $3 1BAD F00D $4 9999 9999 $5 9999 999C $6 0000 0001 $7 0000 0002 $8 9999 999A $9 0000 0000 $10 0000 0000 $11 0000 0000 $12 0000 0000 … … PC 0000 1008 Address Instruction 1000 add $8, $4, $6 1004 add $5, $8, $7 1008 add $6, $6, $6 100C … 1010 … It’s perfectly fine to have $6 as a src and a dst This is just like x = x + x; in C, Java, etc: 1 + 1 = 2
30 Executing Add Register Value $0 0000 0000 $1 1234
5678 $2 C001 D00D $3 1BAD F00D $4 9999 9999 $5 9999 999C $6 0000 0002 $7 0000 0002 $8 9999 999A $9 0000 0000 $10 0000 0000 $11 0000 0000 $12 0000 0000 … … PC 0000 100C Address Instruction 1000 add $8, $4, $6 1004 add $5, $8, $7 1008 add $6, $6, $6 100C … 1010 … Its perfectly fine to have $6 as a src and a dst This is just like x = x + x; in C, Java, etc: 1 + 1 = 2