From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gordon Hogan To: 9fans@cse.psu.edu Subject: Re: [9fans] partial-Plan9ification question MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010713062335.4AFC3199C0@mail.cse.psu.edu> Date: Fri, 13 Jul 2001 02:23:32 -0400 Topicbox-Message-UUID: c9004f6a-eac9-11e9-9e20-41e7f4b1d025 > gcc varies between architectures, and even from platform to platform, > but i think even on the x86 with hardly any registers, some registers are callee-saved. ebx, esi and edi are callee save under GCC. ebp is the frame pointer, so that one gets preserved too (I've no idea what happens if you compile with -fomit-frame-pointer). This means that in the Plan 9 port of GCC, the system call wrappers have to push these four registers, then push copies of all the arguments...