Skip to content

Instantly share code, notes, and snippets.

@indutny
Created March 31, 2012 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indutny/c6d8fa879ccbd27a7f15 to your computer and use it in GitHub Desktop.
Save indutny/c6d8fa879ccbd27a7f15 to your computer and use it in GitHub Desktop.
CFG/SSA (HIR+LIR)
// many defines
a=1
b=2
c=3
d=4
e=5
f=6
g=7
h=8
i=9
j=10
k=11
l=12
// many uses
b
c
d
e
f
g
h
i
j
k
l
return a
0x00000001000fb261: push %rbp
0x00000001000fb262: mov %rsp,%rbp
0x00000001000fb265: mov $0x2,%rax
0x00000001000fb26f: mov $0x4,%rcx
0x00000001000fb279: mov $0x6,%rdx
0x00000001000fb283: mov $0x8,%rbx
0x00000001000fb28d: mov $0xa,%rsi
0x00000001000fb297: mov $0xc,%rdi
0x00000001000fb2a1: mov $0xe,%r8
0x00000001000fb2ab: mov $0x10,%r9
0x00000001000fb2b5: mov $0x12,%r10
0x00000001000fb2bf: mov $0x14,%r11
0x00000001000fb2c9: mov %rax,-0x8(%rbp)
0x00000001000fb2d0: mov $0x16,%rax
0x00000001000fb2da: mov %r11,-0x10(%rbp)
0x00000001000fb2e1: mov $0x18,%r11
0x00000001000fb2eb: mov -0x8(%rbp),%rax
0x00000001000fb2f2: mov %rbp,%rsp
0x00000001000fb2f5: pop %rbp
0x00000001000fb2f6: retq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment