From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <480ce83838b1f5d9f094fcd295a74d7e-EhVcXl1ERwBcRx0AAAwEUR8fGQlVS19cWF9EAV1EWEZaOl4PQVh/H1dXXkFeRExtXlhRQFldWA1WXw==-webmailer2@server01.webmailer.hosteurope.de> In-Reply-To: <0dbae71f151dd42e5e4382c99be6e45d@gmx.de> References: <0dbae71f151dd42e5e4382c99be6e45d@gmx.de> Date: Mon, 26 Jul 2010 23:43:10 +0200 From: "Tassilo Philipp" To: cinap_lenrek@gmx.de User-Agent: Host Europe Webmailer/1.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: 9fans@9fans.net Subject: Re: [9fans] Plan9 Calling Convention (x86) Topicbox-Message-UUID: 443fd8ce-ead6-11e9-9d60-3106f5b1d025 Thanks a ton, you are my hero! Thanks, Tassilo > caller saves, so function is free to use any register. params are put > on the stack and then just uses a call instruction wich leaves the > return pc on the stack. function allocates space for its local > variables on the stack and restores SP before return. return value of > a function is put in AX (for integers and pointers). structures and > 64bit vlongs are returned the way that the caller allocates it and > passes a pointer to it as the first parameter (on the stack). AX is > then not used as return value and can be used freely in the callee. > > -- > cinap >