larr@buhub.bradley.edu (Larry Schoeneman) (04/05/91)
I am writing a M2 compiler as part of an independent study. Could some one please give me some ideas as to how .sym (or .ref) type files, which basically store the symbol table in a file, are created? Does anyone have any idea where I can find references which explain how to do this? Any help would be greatly appreciated. Larry Schoeneman larr@buhub.bradley.edu
MDORMAN1@UA1VM.BITNET (Mike Dorman) (04/06/91)
On Thu, 4 Apr 91 19:25:14 GMT <editor%ucf1vm.BITNET@LILAC.BERKELEY.EDU> said: >I am writing a M2 compiler as part of an independent study. Could >some one please give me some ideas as to how .sym (or .ref) type >files, which basically store the symbol table in a file, are created? >Does anyone have any idea where I can find references which explain >how to do this? > > Any help would be greatly appreciated. > Larry Schoeneman >larr@buhub.bradley.edu It's a bit obscure, but the manuals for TDI Modula-2/ST include Backus-Nuar formats for the .symbol files. Unfortunately, TDI has gone out of business and I still use the package--I need to keep the manuals. I suppose if nothing better comes up for you, tell me, and I'll photocopy the relevant pages and I can send them to you. Mike. ------------------------------------------------------------------------------- : Michael Alan Dorman : : : MDORMAN1@UA1VM.UA.EDU : Hobbies are things people do when they should be : : BIX: syssupport : sleeping. --M.A.D. : : GEnie: M.DORMAN2 : : : PostalNet: : : : Box 8068 : Stonehenge was built by two drunks with no : : Tuscaloosa, AL : witnesses. --P.S.McGhee : : 35486 : : -------------------------------------------------------------------------------
news@m2xenix.psg.com (Randy Bush) (04/07/91)
> I am writing a M2 compiler as part of an independent study. Could > some one please give me some ideas as to how .sym (or .ref) type > files, which basically store the symbol table in a file, are created? > Does anyone have any idea where I can find references which explain > how to do this? These are highly implementation dependent, and vary greatly depending on the style of your compiler. But, for Modula-2, there is the obvious lit ref: J. Gutknecht "Compilation Data Structures: An New Approach to Efficient Modula-2 Symbol Files" ETHZ/IFI yellow book #64 (also contains N. Wirth: "A Fast and Compact Compiler for Modula-2") -- Randy Bush / news@psg.com / ..!uunet!m2xenix!news