하나는

int get() {
    int ret = 3;
    return ret;
}

또 하나는

struct test {
    int value;
};

int get() {
    struct test ret;
    ret.value = 3;
    return ret.value;
}

디스어셈해보면

0000000000000000 <get>:
   0:   55                      push   %rbp
   1:   48 89 e5                mov    %rsp,%rbp
   4:   c7 45 fc 03 00 00 00    movl   $0x3,-0x4(%rbp)
   b:   8b 45 fc                mov    -0x4(%rbp),%eax
   e:   c9                      leaveq
   f:   c3                      retq

둘 다 똑같아