Date: Tue, 10 Dec 2002 11:53:34 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Chuck Tuffli <chuck_tuffli@agilent.com> Cc: phk@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: registers not saved Message-ID: <200212101953.gBAJrYkx022095@apollo.backplane.com> References: <20021210154635.GC605@thegrail.rose.agilent.com> <99179.1039535914@critter.freebsd.dk> <20021210161813.GA681@thegrail.rose.agilent.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In C for the IA32, EAX, ECX, and EDX are scratch registers. All other registers must be saved and restored by the procedure. Also keep in mind that the return value of a procedure is placed in eax. If the return value is a 64 bit value, it is placed in eax and edx. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212101953.gBAJrYkx022095>