Xref: utzoo comp.lang.c:8889 comp.sys.ibm.pc:14092 Path: utzoo!mnetor!uunet!steinmetz!ge-dab!codas!ateng!chip From: chip@ateng.UUCP (Chip Salzenberg) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: cdecl keyword Message-ID: <213@ateng.UUCP> Date: 4 Apr 88 17:13:46 GMT References: <1238@wjvax.UUCP> <297@ho7cad.ATT.COM> <1242@wjvax.UUCP> <3867@super.upenn.edu> <185@premise.ZONE1.COM> Reply-To: chip@ateng.UUCP (Chip Salzenberg) Organization: A T Engineering, Tampa, FL Lines: 15 Keywords: cdecl pascal Microsquishy In article <185@premise.ZONE1.COM> chang@premise.ZONE1.COM (John Chang) writes: >However, the right to left parameter passing takes more code space >(one extra instruction to fix the stack after a function call) and >hence takes longer to execute than 'pascal' calling convention >(left-to-right parameter passing). The Pascal calling sequence is faster than C, but for a different reason. The Pascal calling sequence is not faster because of its backwards (:-]) order, but because it does not allow variadic functions. Since the called function is always called with the same number of arguments, it can clean up the stack when it returns instead of making the caller do it. -- Chip Salzenberg "chip@ateng.UU.NET" or "codas!ateng!chip" A T Engineering My employer's opinions are a trade secret. "Anything that works is better than anything that doesn't."