Is it easy/possible to run code with 32 bit pointers on a modern 64 bit OS?

Achim Gratz Stromeko at nexgo.de
Sun Mar 26 10:37:38 UTC 2017


Hal Murray writes:
> If so, how do I do it?

If you're talking x86 GNU/Linux, then you'd need to use a distro that
has a 32bit subsystem and compile ntpd to use that.

> The idea is to save space in data structures if you know you won't need more 
> than a total of a few GB of VM.

Wouldn't it be easier in that case to just start a 32bit VM on top of
the 64bit hypervisor?

> It saves 18% in the MRU slots.

Well, you could replace pointers by base+index there and keep the index
values short at the expense of having to calculate the effective address
each time you need to actually access one of those things.  On x86 that
calculation may actually be free if the compiler groks what you're
doing.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves



More information about the devel mailing list