list.c · reverse
each line level with its instructions
20
while
(
head
)
{
1001
910
test
rdi, rdi
1001
913
je
1001935
1001
915
push
rbp
1001
916
mov
rbp, rsp
1001
919
xor
eax, eax
1001
91b
nop
[rax + rax]
1001
920
mov
rcx, rax
1001
923
mov
rax, rdi
21
struct
node
*
next
=
head
-
>
next
;
1001
926
mov
rdi, [rdi + 8]
1004098
1004070
9
22
head
-
>
next
=
prev
;
1001
92a
mov
[rax + 8], rcx
23
prev = head;
24
head = next;
25
}
no code of their own
20
while (head) {
again: its second run
1001
92e
test
rdi, rdi
1001
931
jne
1001920
1001
933
pop
rbp
26
return
prev
;
1001
934
ret
1001
935
xor
eax, eax
1001
937
ret
_init · no line
1001
938
endbr64
1001
93c
sub
rsp, 8
The same listing in two columns: each line level with the first
of its instructions. Lines 23 to 25 compiled to nothing of their own.