News for hackers. Stuff that matters.
Re:A Crash Course in X86 Assembly for Reverse Engineers (201... by psi-squared on Saturday December 03, 2016 @01:44PM (#13096876)
One of the less-well-known features of Linux is that you can do this! Theres's a thing called the "x32 ABI" (use the option -mx32 with gcc or clang; you'll need all your libraries compiled with it too) where:

* As far as the processor itself is concerned, the code runs in 64-bit mode, so you get the extra (and wider) registers from that.

* But pointers are still 32 bits, so you get the memory savings of 32-bit mode.

In principle, as long as you're using <4GiB of memory, it should be at least as fast as the best of 32-bit or 64-bit mode for any particular program. But I haven't heard of it being used much.

https://en.wikipedia.org/wiki/X32_ABI

Re:A Crash Course in X86 Assembly for Reverse Engineers (201... by tomcam on Saturday December 03, 2016 @02:21PM (#13097061)
Like GP, I thought I had cleverly thought of this idea up myself. So glad that smarter people than I have did this up right!
Re:A Crash Course in X86 Assembly for Reverse Engineers (201... by ant6n on Saturday December 03, 2016 @09:45PM (#13098556)
The only thing missing, I guess, is 64bit 'himem' pointers.
Re:A Crash Course in X86 Assembly for Reverse Engineers (201... by ant6n on Saturday December 03, 2016 @09:45PM (#13098557)
does something like this exist for aarch64?