Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    		 Crown Copyright (c) 1997
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
 
30
 
31
/* procrectypes.h
32
     types for properties of procs
33
      needs, weights,parpair,procrec,spacereq
34
*/
35
 
36
#include "exptypes.h"
37
 
38
#ifndef procreckey
39
 
40
#define procreckey 1
41
 
42
#define wfixno 25
43
#define wfloatno 16
44
 
45
struct needst {
46
  int   fixneeds;		/* no of fixed t-regs required */
47
  int   floatneeds;		/* no of float t-regs required */
48
        prop propsneeds;	/* various binary properties of exp */
49
  int   maxargs;		/* size in bits for actual parameters in
50
				   exp */
51
  int 	numparams;	/* size in bits of parameters to function */
52
 
53
};
54
typedef struct needst needs;
55
 
56
struct weightst {
57
  float fix[wfixno];
58
  float  floating[wfloatno];
59
};
60
typedef struct weightst weights;
61
 /* used to allocate tags to registers */
62
 
63
 
64
struct spacereqt {
65
  int  fixdump;
66
  int 	fltdump;
67
  int  stack;
68
};
69
typedef struct spacereqt  spacereq;
70
 /* used characterise s-reg and stack requirements of proc */
71
 
72
struct procrect {
73
  needs needsproc;
74
  spacereq spacereqproc;
75
  int frame_size;
76
  int locals_offset;
77
  int max_args;
78
  int paramsdumpstart;
79
  int fixdump;
80
  int floatdump;
81
  int dumpstart;
82
  int fldumpstart;
83
  int callee_size;
84
};
85
typedef struct procrect procrec;
86
 /* various properties of a procedure */
87
 
88
struct wpt {
89
  weights wp_weights;
90
  long  fix_break;
91
  long  float_break;
92
};
93
typedef struct wpt  wp;
94
 /* used to allocate tags to registers */
95
 
96
struct spacet {
97
  int  fixed;
98
  int  flt;
99
};
100
typedef struct spacet space;
101
 /* used to indicate free t-regs in code production */
102
 
103
#endif