home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / src / h / header.h < prev    next >
C/C++ Source or Header  |  2001-12-12  |  1KB  |  29 lines

  1. /*
  2.  * Interpreter code file header - this is written at the start of
  3.  *  an icode file after the start-up program.
  4.  */
  5. struct header {
  6.    word hsize;            /* size of interpreter code */
  7.    word trace;            /* initial value of &trace */
  8.  
  9.    word Records;
  10.    word Ftab;            /* location of record/field table */
  11.    word Fnames;            /* location of names of fields */
  12.    word Globals;        /* location of global variables */
  13.    word Gnames;            /* location of names of globals */
  14.    word Statics;        /* location of static variables */
  15.    word Strcons;        /* location of identifier table */
  16.    word Filenms;        /* location of ipc/file name table */
  17.  
  18.    #ifdef FieldTableCompression
  19.       short FtabWidth;        /* width of field table entries, 1 | 2 | 4 */
  20.       short FoffWidth;        /* width of field offset entries, 1 | 2 | 4 */
  21.       word Nfields;        /* number of field names */
  22.       word Fo;            /* The start of the Fo array */
  23.       word Bm;            /* The start of the Bm array */
  24.    #endif            /* FieldTableCompression */
  25.  
  26.    word linenums;        /* location of ipc/line number table */
  27.    word config[16];        /* icode version */
  28.    };
  29.