This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
which registers must be preserved for the caller
- From: Andrew Makhorin <mao at gnu dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 19 Aug 2017 10:10:47 +0300
- Subject: which registers must be preserved for the caller
- Authentication-results: sourceware.org; auth=none
Hello,
The document "System V ABI: Intel386 Architecture Processor Supplement"
says that contents of %ebx, %esi, and %edi must be preserved for the
caller. Does GCC for 32-bit GNU/Linux and for 32-bit Cygwin conform to
this ABI? If not, how to determine which registers are expected to be
saved by calling C functions?
Thank you,
Andrew Makhorin