home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / programm / 11343 < prev    next >
Encoding:
Text File  |  1992-12-11  |  856 b   |  29 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!saimiri.primate.wisc.edu!eng.ufl.edu!manta!zzang
  3. From: zzang@stat.ufl.edu (zzang)
  4. Subject: Calling convention: C vs PASCAL
  5. Message-ID: <1992Dec11.225015.26304@eng.ufl.edu>
  6. Originator: zzang@manta
  7. Sender: news@eng.ufl.edu (Usenet Diskhog System)
  8. Organization: University of Florida
  9. Distribution: usa
  10. Date: Fri, 11 Dec 92 22:50:15 GMT
  11. Lines: 16
  12.  
  13. Hello,
  14. the C pushs the arg from right to left onto
  15. the stack when calling a function.
  16. the PASCAL pushs the args from left to right.
  17. I was told that the C calling convention results
  18. in larger as well as slower program.
  19. (due to some cleanup work of the stack after call??)
  20.  
  21. can someone tell me why ?
  22.  
  23. Thanks very much,
  24.  
  25. -- 
  26. Zhuo Zang[~{j0WA~}]
  27. Department of Statistics
  28. University of Florida            Email: zzang@stat.ufl.edu
  29.