home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume15 / hash8 / DOC next >
Encoding:
Text File  |  1988-06-05  |  1.3 KB  |  43 lines

  1. Hash8 documentation                Arch D. Robison
  2.                         University of Illinois
  3.                         Urbana Champaign
  4.  
  5.                         robison@uiucdcs
  6.  
  7.             Hash8 
  8.  
  9. There three files (other than DOC) provided:
  10.  
  11.     hash8.c     source code for long identifier converter
  12.     Makefile    example makefile
  13.     ncc        shell script for compiling
  14.  
  15. The hash8 program allows short-identifier C compilers to compile
  16. long-identifier programs.  It is not intened for production use,
  17. but for quickly porting long-identifier programs.
  18.  
  19. See the documentation in hash8.c and the Makefile for how to use it with cc.
  20.  
  21. ----------------------------------------------------------------------
  22.  
  23.             Hash8 with lint
  24.  
  25. I've been able to hack a short identifier lint with "hash8" so it would work
  26. with long identifier programs.  This was an easy modification since lint is
  27. a shell script.  The "hash8 encode" filter was put in between /lib/cpp and 
  28. /usr/lib/lint/lint and all error message written to a temporary file.
  29. Then "hash8 decode" was used to decode the error messages.
  30.  
  31. Note that hash8's can not run in parallel, since the identifier map is read all
  32. at once and written all at once.
  33.  
  34. Thus you can't (regrettably) do: 
  35.  
  36.      hash8 encode TABLE | /lib/cpp | hash8 decode TABLE
  37.  
  38. The above would have to be written:
  39.  
  40.      hash8 encode TABLE >TEMP
  41.      cat TEMP | /lib/cpp | hash8 decode TABLE
  42.  
  43.