Clarity about extern(Windows)/extern(System)

Kagamin spam at here.lot
Mon Dec 18 14:46:14 UTC 2017


 From https://gcc.godbolt.org/

__attribute__((stdcall))
int square(int num) {
     return num * num;
}

_Z6squarei:
   push ebp
   mov ebp, esp
   mov eax, DWORD PTR [ebp+8]
   imul eax, DWORD PTR [ebp+8]
   pop ebp
   ret 4


More information about the Digitalmars-d-learn mailing list