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 |
/**********************************************************************
|
|
|
32 |
$Author: release $
|
|
|
33 |
$Date: 1998/01/17 15:56:06 $
|
|
|
34 |
$Revision: 1.1.1.1 $
|
|
|
35 |
$Log: procrectypes.h,v $
|
|
|
36 |
* Revision 1.1.1.1 1998/01/17 15:56:06 release
|
|
|
37 |
* First version to be checked into rolling release.
|
|
|
38 |
*
|
|
|
39 |
* Revision 1.1 1995/04/13 09:08:06 currie
|
|
|
40 |
* Initial revision
|
|
|
41 |
*
|
|
|
42 |
***********************************************************************/
|
|
|
43 |
/* procrectypes.h
|
|
|
44 |
types for properties of procs
|
|
|
45 |
needs, weights,parpair,procrec,spacereq
|
|
|
46 |
*/
|
|
|
47 |
|
|
|
48 |
#include "exptypes.h"
|
|
|
49 |
|
|
|
50 |
#ifndef procreckey
|
|
|
51 |
|
|
|
52 |
#define procreckey 1
|
|
|
53 |
|
|
|
54 |
#define wfixno 25
|
|
|
55 |
#define wfloatno 16
|
|
|
56 |
|
|
|
57 |
struct needst {
|
|
|
58 |
int fixneeds; /* no of fixed t-regs required */
|
|
|
59 |
int floatneeds; /* no of float t-regs required */
|
|
|
60 |
prop propsneeds; /* various binary properties of exp */
|
|
|
61 |
int maxargs; /* size in bits for actual parameters in
|
|
|
62 |
exp */
|
|
|
63 |
};
|
|
|
64 |
typedef struct needst needs;
|
|
|
65 |
|
|
|
66 |
struct weightst {
|
|
|
67 |
float fix[wfixno];
|
|
|
68 |
float floating[wfloatno];
|
|
|
69 |
};
|
|
|
70 |
typedef struct weightst weights;
|
|
|
71 |
/* used to allocate tags to registers */
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
struct spacereqt {
|
|
|
75 |
long fixdump;
|
|
|
76 |
long fltdump;
|
|
|
77 |
long stack;
|
|
|
78 |
};
|
|
|
79 |
typedef struct spacereqt spacereq;
|
|
|
80 |
/* used characterise s-reg and stack requirements of proc */
|
|
|
81 |
|
|
|
82 |
struct procrect {
|
|
|
83 |
needs needsproc;
|
|
|
84 |
spacereq spacereqproc;
|
|
|
85 |
long frame_size;
|
|
|
86 |
long locals_offset;
|
|
|
87 |
long max_args;
|
|
|
88 |
long fixdump;
|
|
|
89 |
long floatdump;
|
|
|
90 |
long dumpstart;
|
|
|
91 |
long fldumpstart;
|
|
|
92 |
long callee_size;
|
|
|
93 |
};
|
|
|
94 |
typedef struct procrect procrec;
|
|
|
95 |
/* various properties of a procedure */
|
|
|
96 |
|
|
|
97 |
struct wpt {
|
|
|
98 |
weights wp_weights;
|
|
|
99 |
long fix_break;
|
|
|
100 |
long float_break;
|
|
|
101 |
};
|
|
|
102 |
typedef struct wpt wp;
|
|
|
103 |
/* used to allocate tags to registers */
|
|
|
104 |
|
|
|
105 |
struct spacet {
|
|
|
106 |
long fixed;
|
|
|
107 |
long flt;
|
|
|
108 |
};
|
|
|
109 |
typedef struct spacet space;
|
|
|
110 |
/* used to indicate free t-regs in code production */
|
|
|
111 |
|
|
|
112 |
#endif
|