From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <781EB76B-227C-4E7F-BAF3-2161589DE8F4@orthanc.ca> References: <781EB76B-227C-4E7F-BAF3-2161589DE8F4@orthanc.ca> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Pietro Gagliardi Subject: Re: [9fans] Non-stack-based calling conventions Date: Fri, 15 Feb 2008 18:39:40 -0500 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Topicbox-Message-UUID: 571fac92-ead3-11e9-9d60-3106f5b1d025 - DOS interrupt function calls use the registers, not the stack. - SPARC and MIPS registers are provided to pass parameters. On Feb 15, 2008, at 6:37 PM, Lyndon Nerenberg wrote: >> >> The calling conventions I have seen are the ccall, stdcall >> (Windows' slightly modified version of the ccall), and pascal. All >> of them push parameters on the stack. > > Take a look at the R-call and S-call conventions used on the IBM > System 360 architecture. These machines didn't even have a stack. > > --lyndon