1: /*	mac2defs.h	4.2	85/08/23	*/
   2: 
   3: /*
   4:  * VAX-11/780 Registers
   5:  */
   6: 
   7: /*
   8:  * Scratch registers
   9:  */
  10: #define R0  0
  11: #define R1  1
  12: #define R2  2
  13: #define R3  3
  14: #define R4  4
  15: #define R5  5
  16: 
  17: /*
  18:  * Register variables
  19:  */
  20: #define R6  6
  21: #define R7  7
  22: #define R8  8
  23: #define R9  9
  24: #define R10 10
  25: #define R11 11
  26: 
  27: /*
  28:  * Special purpose registers
  29:  */
  30: #define AP  12      /* argument pointer */
  31: #define FP  13      /* frame pointer */
  32: #define SP  14      /* stack pointer */
  33: #define PC  15      /* program counter */
  34: 
  35: #define REGSZ   16
  36: #define TMPREG  FP
  37: 
  38: #define R2REGS  1       /* permit double indexing */
  39: 
  40: extern  int fregs;
  41: extern  int maxargs;
  42: 
  43: #define BYTEOFF(x)  ((x)&03)
  44: #define wdal(k)     (BYTEOFF(k)==0)     /* word align */
  45: #define BITOOR(x)   ((x)>>3)        /* bit offset to oreg offset */
  46: 
  47: /*
  48:  * Some macros used in store():
  49:  *	just evaluate the arguments, and be done with it...
  50:  */
  51: #define STOARG(p)
  52: #define STOFARG(p)
  53: #define STOSTARG(p)
  54: #define genfcall(a,b)   gencall(a,b)
  55: 
  56: /*
  57:  * Some short routines that get called an awful lot are actually macros.
  58:  */
  59: #if defined(FORT) || defined(SPRECC)
  60: #define szty(t) ((t) == DOUBLE ? 2 : 1)
  61: #else
  62: #define szty(t) (((t) == DOUBLE || (t) == FLOAT) ? 2 : 1)
  63: #endif
  64: #define shltype(o, p) \
  65:     ((o) == REG || (o) == NAME || (o) == ICON || \
  66:      (o) == OREG || ((o) == UNARY MUL && shumul((p)->in.left)))
  67: #define ncopy(q, p) ((q)->in = (p)->in)
  68: 
  69: #define MYREADER(p) myreader(p)
  70: int optim2();
  71: 
  72: /* This indicates there are no additional special shapes, see match.c */
  73: #define special(a, b)   0

Defined macros

AP defined in line 30; never used
BITOOR defined in line 45; never used
BYTEOFF defined in line 43; used 1 times
  • in line 44
FP defined in line 31; used 1 times
  • in line 36
MYREADER defined in line 69; never used
PC defined in line 33; never used
R0 defined in line 10; never used
R1 defined in line 11; never used
R10 defined in line 24; never used
R11 defined in line 25; never used
R2 defined in line 12; never used
R2REGS defined in line 38; never used
R3 defined in line 13; never used
R4 defined in line 14; never used
R5 defined in line 15; never used
R6 defined in line 20; never used
R7 defined in line 21; never used
R8 defined in line 22; never used
R9 defined in line 23; never used
REGSZ defined in line 35; never used
SP defined in line 32; never used
STOARG defined in line 51; never used
STOFARG defined in line 52; never used
STOSTARG defined in line 53; never used
TMPREG defined in line 36; never used
genfcall defined in line 54; never used
ncopy defined in line 67; never used
shltype defined in line 64; never used
special defined in line 73; never used
szty defined in line 62; never used
wdal defined in line 44; never used
Last modified: 1985-08-25
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1019
Valid CSS Valid XHTML 1.0 Strict