home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / compiler / 2236 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.compilers
  2. Path: sparky!uunet!world!iecc!compilers-sender
  3. From: pcbeard@ucdavis.edu (Patrick C. Beard)
  4. Subject: Re: [TDR] Token-Based Compilers
  5. Reply-To: pcbeard@ucdavis.edu (Patrick C. Beard)
  6. Organization: Department of Computer Science, University of California, Davis
  7. Date: Sat, 23 Jan 1993 01:40:51 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <93-01-164@comp.compilers>
  10. References: <93-01-143@comp.compilers>
  11. Keywords: Pascal, interpreter, comment
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 26
  14.  
  15. tdarcos@mcimail.com (Paul Robinson) writes:
  16. >I'd like to ask what people think of the idea of Compilers that generate
  17. >ficticious machine code, i.e. tokens for an optimized machine which is
  18. >then interpreted on the target.  
  19.  
  20. I believe Microsoft uses P-Code in many of its shipping products for the
  21. Macintosh. Microsoft Word has an enormous 'PCOD' resource in it, which I
  22. take to be the result of some kind of cross-platform compilation tool.
  23.  
  24. I am very interested in finding out what the various trade-offs are in
  25. compiling to pseudo code. And what type of instructions to provide. I am
  26. thinking very seriously about writing a C interpreter using just such a
  27. technique. Has anybody any references on designs of P-Code instruction
  28. sets?
  29.  
  30. // Patrick C. Beard
  31. // Department of Computer Science, U. C. Davis
  32. // pcbeard@ucdavis.edu
  33. [Microsoft has always used p-code for all versions of Word.  The p-code
  34. compiler used to be internal only until it was made part of MS C.  Current
  35. versions of their C compiler can generate p-code and come with the
  36. interpreter.  As you might expect, the p-code is considerably smaller and
  37. slower than native code. -John]
  38. -- 
  39. Send compilers articles to compilers@iecc.cambridge.ma.us or
  40. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  41.