amd64 gcc
.file "main.cpp"
.text
.globl _Z1f1Aicxiiii
.type _Z1f1Aicxiiii, @function
_Z1f1Aicxiiii:
.LFB0:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, %rax
movq %rsi, %r10
movq %rax, %rsi
movq %rdx, %rdi
movq %r10, %rdi
movq %rsi, -16(%rbp)
movq %rdi, -8(%rbp)
movl %edx, -20(%rbp)
movl %ecx, %eax
movq %r8, -32(%rbp)
movl %r9d, -36(%rbp)
movb %al, -24(%rbp)
movl $9, -20(%rbp)
movb $97, -24(%rbp)
movq $35270, -32(%rbp)
movl $65, 32(%rbp)
nop
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size _Z1f1Aicxiiii, .-_Z1f1Aicxiiii
.globl main
.type main, @function
main:
.LFB1:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movl %edi, -36(%rbp)
movq %rsi, -48(%rbp)
movq %fs:40, %rax
movq %rax, -8(%rbp)
xorl %eax, %eax
movq $67, -24(%rbp)
movq -32(%rbp), %rsi
movq -24(%rbp), %rax
subq $8, %rsp
pushq $7
pushq $6
pushq $5
movl $4, %r9d
movl $3, %r8d
movl $2, %ecx
movl $1, %edx
movq %rsi, %rdi
movq %rax, %rsi
call _Z1f1Aicxiiii
addq $32, %rsp
movl $0, %eax
movq -8(%rbp), %rdx
xorq %fs:40, %rdx
je .L4
call __stack_chk_fail
.L4:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size main, .-main
.ident "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609"
.section .note.GNU-stack,"",@progbits
struct A{
int a;
char c;
long long e;
};
void f(A _,int a, char b, long long c, int ,int ,int , int e){
a=9;
b='a';
c =35270;
e = 65;
}
int main(int argc, char *argv[])
{
A a;
a.e = 67;
f(a,1,2,3,4,5,6,7);
return 0;
}

浙公网安备 33010602011771号