home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / transput / 1211 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.9 KB  |  51 lines

  1. Newsgroups: comp.sys.transputer
  2. Path: sparky!uunet!inmos!titan.inmos.co.uk!news
  3. From: steved@lion.inmos.co.uk (Stephen Doyle)
  4. Subject: Re: IS Occam3 recursive?
  5. Message-ID: <1992Nov18.130407.12799@titan.inmos.co.uk>
  6. Sender: news@titan.inmos.co.uk
  7. Reply-To: steved@inmos.co.uk (Stephen Doyle)
  8. Organization: INMOS Limited, Bristol, UK.
  9. References: <rob.721665532@dutncp8> <MICHAEL.92Nov16185558@lucrece.uk.ac.oxford> <2292@eagle.ukc.ac.uk> <rob.722034771@dutncp8>
  10. Date: Wed, 18 Nov 1992 13:04:07 GMT
  11. Lines: 38
  12.  
  13. In article <rob.722034771@dutncp8> rob@pact.nl (Rob Kurver) writes:
  14.  
  15. >
  16. >The CSP paradigm as supported by Occam and PACT Parallel C is a very
  17. >powerful one, and is especially interesting with the support provided
  18. >by the transputer.  
  19. >
  20. >Cheers. - Rob
  21. >
  22.  
  23. Rob, you seem to have forgotten about INMOS ANSI C providing the same sort of
  24. CSP paradigm as your own, this obviously slipped your mind :-). I guess the 
  25. difference boils down to whether you want an ANSI C validated compiler with 
  26. functional additions for parallelism and communications or an ANSI C compiler 
  27. with non-ANSI language additions for the same. I would argue (from customer 
  28. feedback) that OCCAM tends to be used along with INMOS ANSI C as this 
  29. provides you with a flexible environment for parallel/comms/sequential 
  30. programming with excellent diagnostics at compile and run time.
  31.  
  32. Just to cloud the issue once more INMOS' soon to be shipping new optimising C 
  33. compiler has a specific optimisation for tail call recursion i.e.
  34.  
  35. void p (int q)
  36. {
  37.   ...
  38.   return(p(...));
  39. }
  40.  
  41. in this case the workspace of p is reused as the function recurses, also, 
  42. nested returns are omitted so that only one return is needed no matter how many 
  43. levels of recursion take place.
  44.  
  45. Steve
  46.  
  47. Steve Doyle, Software Marketing, INMOS Ltd   | Tel +44 454 616616
  48. 1000 Aztec West                              | 
  49. Almondsbury                                  | UK: steved@inmos.co.uk
  50. Bristol BS12 4SQ, UK                         | US: steved@inmos.com
  51.