[Issue 2384] abi spec is unclear on parameter passing

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 2 01:41:17 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2384


bugzilla at digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #1 from bugzilla at digitalmars.com  2008-10-02 03:41 -------
'this' is passed last, and in the EAX register. For example,

class A
{
    int x;
    void foo() { x = 3; }
}

results in:

_D5test51A3fooMFZv      comdat
        assume  CS:_D5test51A3fooMFZv
                mov     dword ptr 8[EAX],3
                ret
_D5test51A3fooMFZv      ends


-- 



More information about the Digitalmars-d-bugs mailing list