home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / programm / 11412 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  928 b 

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