Xref: utzoo comp.lang.c:9095 comp.sys.ibm.pc:14297 Path: utzoo!mnetor!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!rutgers!mtunx!whuts!homxb!hropus!ki4pv!tanner From: tanner@ki4pv.uucp (Dr. T. Andrews) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: cdecl keyword Message-ID: <7046@ki4pv.uucp> Date: 8 Apr 88 15:05:44 GMT References: <1238@wjvax.UUCP> <297@ho7cad.ATT.COM> <1242@wjvax.UUCP> <185@premise.ZONE1.COM> Organization: CompuData, DeLand Lines: 13 Keywords: cdecl MicroSoft C keywords In article <185@premise.ZONE1.COM>, chang@premise.ZONE1.COM (John Chang) writes: ) The calling convention we're talking about here isn't call-by-name or ) call-by-value. It's simply the order in which parameters are passed ) on the stack. And in C, that order *must* be right to left in order ) to support variable length functions like printf. Not true. I remember many dark moons ago (real-world example, theory experts please ignore) a compiler, on a z-80 yet, which pushed its args left-to-right. It handled [a pre-determined list of] variadic functions as special cases, pushing (invisibly to the user) an extra word containing the argument count. -- {allegra clyde!codas decvax!ucf-cs ihnp4!codas killer}!ki4pv!tanner