Skip to content

Instantly share code, notes, and snippets.

@kcmannem
Last active December 24, 2016 20:43
Show Gist options
  • Save kcmannem/e82736b62f8dce8b8aa4a233c3594afc to your computer and use it in GitHub Desktop.
Save kcmannem/e82736b62f8dce8b8aa4a233c3594afc to your computer and use it in GitHub Desktop.
frame #0: test`testing(x=1, b=2, c=3, d="helo") -> () at test.swift:2
1 func testing(x: Int, b: Int, c: Int, d: String) {
-> 2 }
3 testing(x:1, b:2, c:3, d:"helo")
(lldb) d
test`testing(x : Int, b : Int, c : Int, d : String) -> ():
0x400bc0 <+0>: pushq %rbp
0x400bc1 <+1>: movq %rsp, %rbp
0x400bc4 <+4>: subq $0x30, %rsp
0x400bc8 <+8>: movq %rdi, -0x8(%rbp)
0x400bcc <+12>: movq %rsi, -0x10(%rbp)
0x400bd0 <+16>: movq %rdx, -0x18(%rbp)
0x400bd4 <+20>: movq %rcx, -0x30(%rbp)
0x400bd8 <+24>: movq %r8, -0x28(%rbp)
0x400bdc <+28>: movq %r9, -0x20(%rbp)
-> 0x400be0 <+32>: movq %r9, %rdi
0x400be3 <+35>: callq 0x400bf0 ; swift_rt_swift_release
0x400be8 <+40>: addq $0x30, %rsp
0x400bec <+44>: popq %rbp
0x400bed <+45>: retq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment