Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22162

Changing calling convention in gcc/g++ abi

$
0
0

How could I enforce gcc/g++ to not use registers but only stack in x86_64 to pass arguments to functions, like it was in 32-bit version (and possibly take the function result this way). I know it breaks official ABI and both the caller side and the called side must be compiled this way so it works. I don't care if push/pop or mov/sub way is used. I expect there should be a flag to compiler that could enforce it but I couldn't find it.


Viewing all articles
Browse latest Browse all 22162

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>