home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / programm / 11495 < prev    next >
Encoding:
Text File  |  1992-12-20  |  1.5 KB  |  42 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!noc.near.net!signet!sen
  3. From: sen@signet.com (Siddhartha Sen)
  4. Subject: Re: Pascal & C Calling standard?
  5. Message-ID: <BzFGG9.Kxy@signet.com>
  6. Organization: Sigma Network Systems, Reading Ma.
  7. References: <1gnv0uINNa4a@ub.d.umn.edu>
  8. Date: Thu, 17 Dec 1992 23:40:56 GMT
  9. Lines: 31
  10.  
  11. In article <1gnv0uINNa4a@ub.d.umn.edu> cbusch@ub.d.umn.edu (Chris) writes:
  12. >
  13. >    The discussion on Pascal and C Calling convention was interesting
  14. >and informative.  I wonder though are those convections standard?  That
  15.  
  16.     Really I saved most of them.
  17.  
  18. >is are Pascal functions called that way on other platforms, or is it
  19. >just limited to msdos machines?
  20.  
  21.     NO !!!
  22.     
  23.     I learnt my first prog lang PASCAL on DEC-10. There also the callee 
  24. cleared the stack. KL-10 (like PDP-11) proc used a POPJ 17, instruction that
  25. did precisely the same.
  26.  
  27.     Secondly, "msdos machines" is not the right word but "intel machines" is.
  28.  Yes, in intel machines RETF nn does the same !! If you have programmed in
  29. MS-WINDOWS you must be "pained" by declaring every callback as "FAR PASCAL".
  30. This is partially because WINDOWS developers thought that PASCAL convention
  31. would be better as it would translate easily to RETF nn. (IMHO)
  32.  
  33. Regards,
  34.                 - Siddhartha Sen
  35.  
  36.  
  37. -- 
  38. ___________________________________________________Siddhartha__Sen______
  39. e-mail: sen@signet.com | FAX: 617-942-082 | SIGMA network systems Inc,
  40. voice : 617-942-0200x136 <--off->| 25 Walkers Brook Dr, READING MA 01867 
  41. voice : 617-942-2193  <-- res --> 5 Lakeview Av, #4, READING MA 01867 
  42.