[Issue 673] ABI as documented is 32 bit specific.. how about 64 bits?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 11 19:18:35 PST 2006


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


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com




------- Comment #4 from smjg at iname.com  2006-12-11 21:18 -------
(In reply to comment #0)
> Arrays in D are already 8 bytes on 32-bit and 16 bytes on 64-bit, I'm assuming
> the same would go for the vtables ? \ The documentation here is out of date, or
> at least not updated to 64 bits yet (probably two ABIs, right ?)

Why have two ABIs?  Just have one ABI written in bits-neutral terms.  For
example:

    offset    contents
    0         array dimension
    p         pointer to array data

where p is the platform's pointer size.

Or more concisely:

    offset            contents
    0                 array dimension
    (void*).sizeof    pointer to array data


-- 



More information about the Digitalmars-d-bugs mailing list