Re: which registers must be preserved for the caller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19/08/2017 09:10, Andrew Makhorin wrote:

> 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?

(NB: GCC supports dozens of platforms)

You seem to be interested in the x86 "cdecl" ABI.

https://en.wikipedia.org/wiki/X86_calling_conventions#cdecl

I think the SysV and Microsoft ABI are close, but may differ
over details, e.g. returning structs.

Regards.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux