Created
August 16, 2018 03:48
-
-
Save wayling/4f0a2b40dece616893722299631b7441 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0000000000007120 <_ZN3aaa10build_user17h6ef656f427941943E>: | |
7120: 55 push rbp | |
7121: 48 89 e5 mov rbp,rsp | |
7124: 48 89 f8 mov rax,rdi | |
7127: c7 47 10 64 00 00 00 mov DWORD PTR [rdi+0x10],0x64 | |
712e: 48 c7 07 65 00 00 00 mov QWORD PTR [rdi],0x65 | |
7135: 48 c7 47 08 66 00 00 mov QWORD PTR [rdi+0x8],0x66 | |
713c: 00 | |
713d: 5d pop rbp | |
713e: c3 ret | |
713f: 90 nop | |
0000000000007140 <_ZN3aaa4main17he50505f0630915c9E>: | |
7140: 55 push rbp | |
7141: 48 89 e5 mov rbp,rsp | |
7144: 48 83 ec 20 sub rsp,0x20 | |
7148: 48 8d 7d e8 lea rdi,[rbp-0x18] | |
714c: e8 cf ff ff ff call 7120 <_ZN3aaa10build_user17h6ef656f427941943E> | |
7151: 48 83 c4 20 add rsp,0x20 | |
7155: 5d pop rbp | |
7156: c3 ret | |
7157: 66 0f 1f 84 00 00 00 nop WORD PTR [rax+rax*1+0x0] | |
715e: 00 00 | |
================================================================================= | |
struct User{ | |
a:i32, | |
b:i64, | |
c:i64 | |
} | |
fn build_user() -> User { | |
User { | |
a:100, | |
b:101, | |
c:102, | |
} | |
} | |
fn main(){ | |
let tmp = build_user(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment