Displaying 1 result from an estimated 1 matches for "t2546".
Did you mean:
2546
2009 Sep 25
2
[LLVMdev] MinGW/MSVC++ uses different ABI for sret
...l %ebx, %eax
movl -4(%ebp), %ebx
leave
ret $4
This is the result of cl -O2 -c -Fa (again, focus on the final `ret')
PUBLIC ?foo@@YA?AUS@@XZ ; foo
EXTRN ?bar@@YA?AUS@@XZ:PROC ; bar
; Function compile flags: /Ogtpy
; COMDAT ?foo@@YA?AUS@@XZ
_TEXT SEGMENT
$T2548 = -16 ; size = 16
$T2546 = 8 ; size = 4
?foo@@YA?AUS@@XZ PROC ; foo, COMDAT
; File c:\dev\exp\bar.cpp
; Line 8
sub esp, 16 ; 00000010H
; Line 9
lea eax, DWORD PTR $T2548[esp+16]
push eax
call ?bar@@YA?AUS@@XZ ; bar
mov ecx, DWORD PTR $T2546[esp+16]
mov edx, DWORD PTR [eax]
mov DWORD PTR [ecx], edx
mo...