www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - x32-abi + D = fat pointers?

reply "Tove" <tove fransson.se> writes:
I just stumbled upon this:
https://sites.google.com/site/x32abi/home

/rant

I remember back in the glorious MC68000 days(24bit addressing)... 
leaving 8bits for creative optimizations... until 68020 took away 
all the fun that is.

So... I was kinda upset that x86-64 was explicitly designed not 
to permit such tricks despite having a 48bit addressing mode... 
hmpf shooting oneself in the foot is the fun part of programming.

/end rant

Anyway... x32-abi to the rescue, access to 64bit registers just 
as normal... but using efficient 32bit pointers, suddenly there 
are 32 bits free to play with, D-slices passed around in a single 
normal 64bit register anyone? actually 32bits is a lot... one 
could also possibly imagine creative flags for the GC.
Apr 08 2012
parent Kevin Cox <kevincox.ca gmail.com> writes:
--0015175cd81470818004bd326c02
Content-Type: text/plain; charset=UTF-8

On Apr 8, 2012 6:24 PM, "Tove" <tove fransson.se> wrote:
 I just stumbled upon this:
 https://sites.google.com/site/x32abi/home

 /rant

 I remember back in the glorious MC68000 days(24bit addressing)... leaving

is.
 So... I was kinda upset that x86-64 was explicitly designed not to permit

in the foot is the fun part of programming.
 /end rant

 Anyway... x32-abi to the rescue, access to 64bit registers just as

free to play with, D-slices passed around in a single normal 64bit register anyone? actually 32bits is a lot... one could also possibly imagine creative flags for the GC.

There could also be a mode where if you need more than 32bits you could use slow odd-sized pointers. --0015175cd81470818004bd326c02 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p><br> On Apr 8, 2012 6:24 PM, &quot;Tove&quot; &lt;<a href=3D"mailto:tove fransso= n.se">tove fransson.se</a>&gt; wrote:<br> &gt;<br> &gt; I just stumbled upon this:<br> &gt; <a href=3D"https://sites.google.com/site/x32abi/home">https://sites.go= ogle.com/site/x32abi/home</a><br> &gt;<br> &gt; /rant<br> &gt;<br> &gt; I remember back in the glorious MC68000 days(24bit addressing)... leav= ing 8bits for creative optimizations... until 68020 took away all the fun t= hat is.<br> &gt;<br> &gt; So... I was kinda upset that x86-64 was explicitly designed not to per= mit such tricks despite having a 48bit addressing mode... hmpf shooting one= self in the foot is the fun part of programming.<br> &gt;<br> &gt; /end rant<br> &gt;<br> &gt; Anyway... x32-abi to the rescue, access to 64bit registers just as nor= mal... but using efficient 32bit pointers, suddenly there are 32 bits free = to play with, D-slices passed around in a single normal 64bit register anyo= ne? actually 32bits is a lot... one could also possibly imagine creative fl= ags for the GC.<br> &gt;</p> <p>There could also be a mode where if you need more than 32bits you could = use slow odd-sized pointers.<br> </p> --0015175cd81470818004bd326c02--
Apr 08 2012