home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / compiler / 1932 < prev    next >
Encoding:
Text File  |  1992-11-21  |  3.5 KB  |  74 lines

  1. Newsgroups: comp.compilers
  2. Path: sparky!uunet!world!iecc!compilers-sender
  3. From: Paul.Robinson@f417.n109.z1.fidonet.org (Paul Robinson)
  4. Subject: Pascal Compiler Source
  5. Reply-To: Paul.Robinson@f417.n109.z1.fidonet.org (Paul Robinson)
  6. Organization: Compilers Central
  7. Date: Sat, 21 Nov 1992 07:45:52 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <92-11-124@comp.compilers>
  10. Keywords: Pascal
  11. Sender: compilers-sender@iecc.cambridge.ma.us
  12. Lines: 60
  13.  
  14. For anyone interested, I have the source to a Pascal Compiler which was
  15. written in Pascal.  I made some minor modifications and was able to
  16. compile this program under Turbo Pascal 6.  It appears to be a full
  17. compiler, (not merely a toy) with support for the entire language
  18. including gotos, pointers and at least two external files (PRR and PRD),
  19. in addition to INPUT and OUTPUT.
  20.  
  21. The only problem I have with it is that the manner in which it allocates
  22. memory I can't get it to compile itself.  By enabling Mark() and Release()
  23. it got somewhat farther down in the source before it died, but apparently
  24. what is happening is either (1) it was set up on a VERY large memory, i.e.
  25. a machine with at least a meg of accessible memory (2) the program was
  26. compiled using some scheme involving memory paging and such, or the
  27. program could have been compiled in pieces, i.e. when the program is at a
  28. certain spot, all of the label and indexes are saved, and the program then
  29. restarts the rest of the source from that point.
  30.  
  31. The source to the compiler is about 122K, the source to the P-CODE
  32. interpreter is another 29K.  If someone in the U.S. wants me to send them
  33. a copy, I will send it out either in 5 1/4" 360K disk, or on a 720K 3 1/2"
  34. disk.  The price will be $3 to cover disk costs and postage.  This is the
  35. "PCOM" compiler.  I'll include with this a similar subset Pascal compiler
  36. known as "FACILIS" which does work and is compilable using Turbo Pascal 3,
  37. but is not self-compilable due to lack of pointers and the GOTO
  38. instruction.  On the PCOM compiler, I'll include the original source and
  39. my corrections.
  40.  
  41. However, I also have three others.  One was the "NBS" pascal compiler
  42. which was created for the PDP-11 under contract to the National Bureau of
  43. Standards.  The other is a set of 10 releases of the "SWEDISH PASCAL"
  44. compiler also written for the PDP-11, and consisting of several upgrades
  45. during 1975-1979.
  46.  
  47. The NBS pascal compiler takes about 400K in a compressed archive,
  48. including the PDP-11 assembly and Compiler Source.
  49.  
  50. The Swedish Pascal compiler releases take three 720K disks.  If someone
  51. wants these, I can send them in ZOO or ZIP archive format, on MSDOS
  52. diskettes.  The cost in the U.S. would be $10.  If you want it on 5 1/4,
  53. say so otherwise I'll send 3 1/2".  If you only wanted the NBS pascal
  54. compiler, the price would be the same $3, or $8 for the Swedish Pascal
  55. Compiler alone.
  56.  
  57. Or all three of these sets for $12.  To the best of my knowledge these
  58. compilers are all public domain.  I know for a fact the NBS one is, being
  59. done under contract for a U.S. Government agency.  For anyone of interest
  60. in how compilers are written, I can send these out.
  61.  
  62. Send either cash or a Post Office Money order if you are interested in
  63. any of these to:
  64.  
  65. Paul Robinson
  66. 8604 Second Avenue #104
  67. Silver Spring MD, 20910 USA
  68.  
  69. If you are outside of the U.S. or Canada, use an international money order
  70. or a US dollar check amounting to $10 plus the above price.
  71. -- 
  72. Send compilers articles to compilers@iecc.cambridge.ma.us or
  73. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  74.