home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!yale.edu!yale!hsdndev!spdcc!merk!fcshome!fredex
- From: fredex@fcshome.UUCP (fred smith)
- Newsgroups: comp.os.msdos.programmer
- Subject: Re: Calling convention: C vs PASCAL
- Message-ID: <9212142469@fcshome.UUCP>
- Date: 15 Dec 92 13:47:54 GMT
- References: <1992Dec14.124529@cs.utwente.nl>
- Organization: What?!? Absolutely none!
- Lines: 10
- X-Newsreader: TIN [version 1.1 PL7]
-
- Duco Fijma (fijma@cs.utwente.nl) wrote:
- :
- : Waht difference does this make for execution time? The cleanup code has to be
- : executed for every invocation, whether it is included with the callers or the
- : called code. Of course it does make difference for the code size.
-
- The difference is that some processors include a single instruction that
- cleans the stack and does the return. Presumably it is done in fewer
- cycles than the discrete instructions to do the equivalent. If so, then
- the return from a function will be faster.
-