home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / lang / awk / 27 < prev    next >
Encoding:
Text File  |  1993-01-28  |  3.0 KB  |  79 lines

  1. Newsgroups: alt.lang.awk
  2. Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!sgiblab!sgigate!odin!twilight!zola!sundiver.esd.sgi.com!chawley
  3. From: chawley@sundiver.esd.sgi.com (Christopher J. Hawley)
  4. Subject: Re: awk compilers
  5. Message-ID: <vccorbc@zola.esd.sgi.com>
  6. Sender: news@zola.esd.sgi.com (Net News)
  7. Reply-To: chawley@sundiver.esd.sgi.com
  8. Organization: Silicon Graphics, Inc. / DSSD
  9. References: <1993Jan22.115028.17060@cas.org> <1993Jan22.210456.25409@psych.toronto.edu>
  10. Distribution: na
  11. Date: Tue, 26 Jan 93 20:31:50 GMT
  12. Lines: 65
  13.  
  14.     In article <1993Jan22.210456.25409@psych.toronto.edu>,
  15. gswan@psych.toronto.edu (George Swan) writes:
  16.  
  17. + From: gswan@psych.toronto.edu (George Swan)
  18. + Subject: awk compilers for MS-DOS (was Re: About AWKCC)
  19. + Message-ID: <1993Jan22.210456.25409@psych.toronto.edu>
  20. + Summary: Such things exist
  21. + Organization: Department of Psychology, University of Toronto
  22. + Date: Fri, 22 Jan 93 13:04:56 PDT
  23.  
  24.     [11 lines omitted]
  25. + Thompson Automation, of uh, I forget, has been selling
  26. + an awk compiler for MS-DOS for at least a year now.
  27. + I have basically been happy with it.  One strange feature
  28. + is that all of the binaries it has created for me have all
  29. + been the same size.
  30.  
  31.     Hmm, this sounds kinda familiar... an obscure feature of  awk , frequently
  32. disabled during compilation (making it unavailable), was the ability to write
  33. a core image of  awk  after it had parsed the supplied script (program).  If
  34. this feature is enabled, the command
  35.  
  36.         awk -S -f script.awk
  37.  
  38. would produce a file named  awk.out  -- a core image.  This image could be
  39. subsequently "resumed" with the command
  40.  
  41.         awk -Rawk.out  [filename]
  42.  
  43. under the right conditions -- one being the requirement that the text segment
  44. be writeable -- with (potential!) saving of time which would otherwise be
  45. needed to parse the script file.
  46.  
  47.     It's a long shot, but my guess is that the T.A. compiler does something
  48. similar: it creates a post-parsing core image of some  awk  (either embedded,
  49. or on your system (does the compiler require you to have  awk  installed?)),
  50. and wraps the image in a skeleton to produce an executable file.
  51.  
  52. [ Just for grins, try disassembling a program which the compiler produces to
  53.   see if there's an obvious connection.  e.g.: embedded  awk  usage message.
  54. ]
  55.  
  56.  
  57.     If you're curious, there's a short paper called
  58.  
  59.                     A Supplemental Document For AWK
  60.                                  -or-
  61.              Things Al, Pete, And Brian Didn't Mention Much
  62.  
  63. written some time ago by John W. Pierce, which describes several features,
  64. known bugs, etc.; it also contains practical suggestions, plus interesting
  65. or obscure (albeit dated) tidbits about  awk .  I'm not exactly certain of
  66. the archive location from which I FTP'd the paper, but I think it's archived
  67. on  cs.toronto.edu:  with the filename "awk.supp", somewhere under  doc/ 
  68. directory.
  69. Don't hold me to that, though; check with  archie  first if possible.
  70.  
  71.  
  72. #include <std/disclaimer.h>
  73.    /*  Employed by SGI in a non-speaking capacity.  All opinions are mine. */
  74.  
  75. -- 
  76.                     - Christopher J. Hawley / esper
  77.  
  78.  
  79.