The x32 system call ABI
The x32 system call ABI
Posted Sep 1, 2011 8:08 UTC (Thu) by slashdot (guest, #22014)In reply to: The x32 system call ABI by njs
Parent article: The x32 system call ABI
I don't understand why they need to change the kernel and add a new "x32" ABI.
Why not just have x32 programs use the x86-64 system calls and otherwise behave as normal x86-64 programs from the kernel's perspective?
The only difference would then be that they would only use 4GB of address space (mmap with MAP_32BIT), and store pointers in 32-bit-sized locations in memory.
In fact, you could probably use #pragma and/or __attribute__ to specify pointer size, and use a 64-bit libc, while most other libraries and the executable are 32-bit.
