home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18229 < prev    next >
Encoding:
Text File  |  1992-12-11  |  854 b   |  31 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!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.225756.26780@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:57:56 GMT
  11. Lines: 18
  12.  
  13. Hello,
  14. the C pushs the args 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 convention results in
  18. larger as well as slower program.
  19. (due to some cleanup work of the stack
  20. after call??)
  21.  
  22. can someone tell me why?
  23.  
  24. Thanks very much,
  25.  
  26.  
  27. -- 
  28. Zhuo Zang[~{j0WA~}]
  29. Department of Statistics
  30. University of Florida            Email: zzang@stat.ufl.edu
  31.