-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff
More file actions
32 lines (32 loc) · 891 Bytes
/
Copy pathdiff
File metadata and controls
32 lines (32 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- /run/media/live/ntfs/youtube-learning/CarnegieMellonUniversity_CMU/15-213/github-repo/csapp3e/section3/code_examples/movq/main-intel.s 2026-01-12 15:15:15.000000000 +0000
+++ /run/media/live/ntfs/youtube-learning/CarnegieMellonUniversity_CMU/15-213/github-repo/csapp3e/section3/code_examples/movq/main-att.s 2026-01-12 15:18:44.000000000 +0000
@@ -1,14 +1,13 @@
.file "main.c"
- .intel_syntax noprefix
.text
.globl movq_demo
.type movq_demo, @function
movq_demo:
.LFB0:
.cfi_startproc
- mov QWORD PTR global_val[rip], 22136
- mov QWORD PTR global_val[rip], rdi
- mov rax, QWORD PTR global_val[rip]
+ movq $22136, global_val(%rip)
+ movq %rdi, global_val(%rip)
+ movq global_val(%rip), %rax
ret
.cfi_endproc
.LFE0:
@@ -18,9 +17,9 @@
main:
.LFB1:
.cfi_startproc
- mov edi, 10
+ movl $10, %edi
call movq_demo
- mov eax, 0
+ movl $0, %eax
ret
.cfi_endproc
.LFE1: