Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!ukma!mailrus!ulowell!masscomp!ftw From: ftw@masscomp.UUCP (Farrell Woods) Newsgroups: comp.lang.c Subject: Re: passing variable numbers of arguments Message-ID: <319@masscomp.UUCP> Date: 12 Jan 89 16:03:46 GMT References: <899@thor.stolaf.edu> <15341@mimsy.UUCP> <449@marob.MASA.COM> <9321@smoke.BRL.MIL> <1002@vsi.COM> Reply-To: ftw@quasar.UUCP (Farrell Woods) Distribution: na Organization: MASSCOMP - Westford, Ma Lines: 17 In article <1002@vsi.COM> friedl@vsi.COM (Stephen J. Friedl) writes: > >The Zilog Z8000 machine I used in school had an "efficient" >arg passing mechanism that passed the first few args in >registers. Some C compilers for more "conventional" machines also pass arguments this way. For instance, the Microware C compiler for their OS-9/68K operating system will usually pass the first couple of args in d0 and d1, and the rest on the stack. Made for an interesting varargs... -- Farrell T. Woods Voice: (508) 692-6200 x2471 MASSCOMP Operating Systems Group Internet: ftw@masscomp.com 1 Technology Way uucp: {backbones}!masscomp!ftw Westford, MA 01886 OS/2: Half an operating system