3 ms·
i suspect you mean i386, not x32; x32 is an almost unused abi added in 02011 for 64-bit amd and compatible processors, available with gcc -mx32. https://lwn.ne
by kragen 3y ago
i suspect you mean i386, not x32; x32 is an almost unused abi added in 02011 for 64-bit amd and compatible processors, available with gcc -mx32. https://lwn.net/Articles/548838/ https://lwn.net/Articles/548838/ talks a bit about its early adoption
it's so little used that i can't find the abi documentation, but gcc -c -mx32 does seem to generate code that passes arguments in registers, not on the stack, contrary to your assertion
edit: after enough digging, i found https://web.archive.org/web/20130902094821/https://sites.google.com/site/x32abi/documents https://web.archive.org/web/20130902094821/https://sites.goo... linking to https://web.archive.org/web/20201015005434/https://3263a7b2-a-62cb3a1a-s-sites.googlegroups.com/site/x32abi/documents/ifunc.txt?attachauth=ANoY7cr6lpyjuRyT4rmzHQ8Yrzbm0zw6mrWdX5nYk2SA-3HpzQhMfB6w3bnY-y00KmSbZv0nFfZ26ntH4PlotgL6bNiot5isYETkx2Ob_R7965vMKJ3Frib80DkVIrTPvk5_koGv_HIYJiMOwVMWP1AvwmXnT6-PlLM5pKoJ4trQelEVMmoHXExz5mvkz5H9RHfeFf0339K8PL-VUnWc_flglK9vJifV3w%3D%3D&attredirects=0&d=1 https://web.archive.org/web/20201015005434/https://3263a7b2-... but x32-abi-1.0.pdf seems to be missing from the archive and https://web.archive.org/web/*/https://sites.google.com/site/x32abi/documents/ https://web.archive.org/web/*/https://sites.google.com/site/...* doesn't look at all promising