annotate mc.h @ 341:ca34f02b2056

ptr cache speed up
author kono
date Sat, 26 Jun 2004 11:09:11 +0900
parents f25aa4f03198
children 969089695850
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
1 /* Micro-C header file */
d35df41eac69 Initial revision
kono
parents:
diff changeset
2
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
3 #define FLOAT_CODE 1
237
1933266f1efa long long ia32 (imcomplete)
kono
parents: 235
diff changeset
4 #define LONGLONG_CODE 1
292
6d4231b6f9fe switch statement prepare
kono
parents: 278
diff changeset
5 #define CASE_CODE 1
316
22d92986c7f7 asm, valued statement, local decls continue...
kono
parents: 313
diff changeset
6 #define ASM_CODE 1
329
4c8f8ef8c0cf bit field continue...
kono
parents: 327
diff changeset
7 #define BIT_FIELD_CODE 1
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
8
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
9 /* reserved word start */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
10
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
11 #define INT (-1)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
12 #define UNSIGNED (-2)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
13 #define CHAR (-3)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
14 #define UCHAR (-4)
162
0c604d2ff585 *** empty log message ***
kono
parents: 150
diff changeset
15 #define POINTER (-5)
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
16 #define ARRAY (-6)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
17 #define STRUCT (-7)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
18 #define UNION (-8)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
19 #define FUNCTION (-9)
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
20
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
21 #define STATIC (-10)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
22 #define GOTO (-11)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
23 #define RETURN (-12)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
24 #define BREAK (-13)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
25 #define CONTINUE (-14)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
26 #define IF (-15)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
27 #define ELSE (-16)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
28 #define FOR (-17)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
29 #define DO (-18)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
30 #define WHILE (-19)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
31 #define SWITCH (-20)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
32 #define CASE (-21)
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
33 #define DEFAULT (-22)
d35df41eac69 Initial revision
kono
parents:
diff changeset
34 #define RESERVE (-23)
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
35 #define TAG (-24)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
36 #define FIELD (-25)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
37 #define IDENT (-26)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
38 #define MACRO (-27)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
39 #define BLABEL (-28)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
40 #define FLABEL (-29)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
41 #define TYPEDEF (-30)
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
42 #define SIZEOF (-31)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
43 #define TYPE (-32)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
44 #define LONG (-33)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
45 #define SHORT (-34)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
46 #define USHORT (-35)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
47 #define EXTRN (-36)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
48 #define EXTRN1 (-37)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
49 #define VOID (-38)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
50 #define INLINE (-39)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
51 #define REGISTER (-40)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
52 #define FREGISTER (-41)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
53 #define DREGISTER (-42)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
54 #define LREGISTER (-43)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
55 #define CODE (-44)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
56 #define ENVIRONMENT (-45)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
57 #define DEFINED (-46)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
58 #define ENUM (-47)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
59 #define KONST (-48)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
60 #define FMACRO (-49)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
61 #define LMACRO (-50)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
62 #define SIGNED (-51)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
63 #define DOTS (-52)
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
64
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
65 #define FLOAT (-53)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
66 #define DOUBLE (-54)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
67 #define LONGLONG (-55)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
68 #define ULONGLONG (-56)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
69 #define VOLATILE (-57)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
70 #define TYPEOF (-58)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
71 #define ASM (-59)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
72
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
73 /* reserved word end */
78
8418d4b7caa7 *** empty log message ***
kono
parents: 77
diff changeset
74
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
75 #define EMPTY (-99)
103
f849af4b5ea9 *** empty log message ***
kono
parents: 101
diff changeset
76
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
77 /* mode start */
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
78 #define TOP 0
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
79 #define GDECL 1
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
80 #define GSDECL 2
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
81 #define GUDECL 3
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
82 #define ADECL 4
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
83 #define LDECL 5
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
84 #define LSDECL 6
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
85 #define LUDECL 7
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
86 #define STADECL 8
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
87 #define STAT 9
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
88 #define GTDECL 10
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
89 #define LTDECL 11
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
90 #define IFDEF 12
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
91 #define MDECL 13
176
kono
parents: 174
diff changeset
92 #define GEDECL 14
kono
parents: 174
diff changeset
93 #define LEDECL 15
308
e1d17d6adfcc struct field init (first try, no compile error)
kono
parents: 304
diff changeset
94 #define SFDINIT 16
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
95 /* mode end */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
96
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
97 #define US 1
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
98 #define AS 10000
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
99 #define SOP 200
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
100 #define COP 400
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
101 #define DOP 600
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
102 #define FOP 800
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
103 #define LOP 1000
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
104 #define BOP 1200 // bit field
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
105
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
106 /* tree node tags start */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
107
316
22d92986c7f7 asm, valued statement, local decls continue...
kono
parents: 313
diff changeset
108 #define LIST_ARGS(i) (i==FUNCTION||i==CODE||i==ASM)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
109
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
110 /* nullary argments */
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
111
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
112 #define GVAR 1
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
113 #define RGVAR 2
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
114 #define URGVAR 3
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
115 #define LVAR 4
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
116 #define RLVAR 5
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
117 #define URLVAR 6
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
118 #define CRGVAR (COP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
119 #define CURGVAR (COP+URGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
120 #define CRLVAR (COP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
121 #define CURLVAR (COP+URLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
122 #define FRGVAR (FOP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
123 #define FRLVAR (FOP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
124 #define DRGVAR (DOP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
125 #define DRLVAR (DOP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
126 #define SRGVAR (SOP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
127 #define SURGVAR (SOP+URGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
128 #define SRLVAR (SOP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
129 #define SURLVAR (SOP+URLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
130 #define LRGVAR (LOP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
131 #define LURGVAR (LOP+URGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
132 #define LRLVAR (LOP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
133 #define LURLVAR (LOP+URLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
134 #define BRGVAR (BOP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
135 #define BURGVAR (BOP+URGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
136 #define BRLVAR (BOP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
137 #define BURLVAR (BOP+URLVAR)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
138
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
139 #define CONST 7
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
140 #define DCONST (DOP+CONST)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
141 #define FCONST (FOP+CONST)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
142 #define LCONST (LOP+CONST)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
143 #define STRING 8
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
144 #define FNAME 9
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
145
219
6190d24e178c long long code generation level 4
kono
parents: 216
diff changeset
146 #define NULLARY_ARGS(i) (i==REGISTER||i==DREGISTER||i==FREGISTER||i==LREGISTER||(GVAR<=(i%SOP)&&(i%SOP)<=FNAME))
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
147
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
148 /* unary argments */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
149
196
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
150 #define ADDRESS 10
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
151 #define MINUS 11
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
152 #define LNOT 12
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
153 #define BNOT 13
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
154 #define INC 14
196
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
155 #define POSTINC 15
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
156 #define UPOSTINC 16
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
157 #define PREINC 17
196
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
158 #define UPREINC 18
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
159 #define POSTDEC 19
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
160 #define UPOSTDEC 20
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
161 #define PREDEC 21
196
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
162 #define UPREDEC 22
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
163 #define DEC 23
196
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
164 #define CPOSTINC (COP+POSTINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
165 #define CUPOSTINC (COP+UPOSTINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
166 #define CPREINC (COP+PREINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
167 #define CUPREINC (COP+UPREINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
168 #define CPOSTDEC (COP+POSTDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
169 #define CUPOSTDEC (COP+UPOSTDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
170 #define CPREDEC (COP+CPREDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
171 #define CUPREDEC (COP+UPREDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
172 #define SPOSTINC (SOP+POSTINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
173 #define SUPOSTINC (SOP+UPOSTINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
174 #define SPREINC (SOP+PREINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
175 #define SUPREINC (SOP+UPREINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
176 #define SPOSTDEC (SOP+POSTDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
177 #define SUPOSTDEC (SOP+UPOSTDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
178 #define SPREDEC (SOP+PREDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
179 #define SUPREDEC (SOP+UPREDEC)
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
180 #define FPOSTINC (FOP+POSTINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
181 #define FPREINC (FOP+PREINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
182 #define DPOSTINC (DOP+POSTINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
183 #define DPREINC (DOP+PREINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
184 #define LPOSTINC (LOP+POSTINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
185 #define LPREINC (LOP+PREINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
186 #define LUPOSTINC (LOP+UPOSTINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
187 #define LUPREINC (LOP+UPREINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
188 #define INDIRECT 24
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
189 #define RINDIRECT 25
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
190 #define URINDIRECT 26
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
191 #define CRINDIRECT (COP+RINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
192 #define CURINDIRECT (COP+URINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
193 #define SRINDIRECT (SOP+RINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
194 #define SURINDIRECT (SOP+URINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
195 #define FRINDIRECT (FOP+RINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
196 #define DRINDIRECT (DOP+RINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
197 #define LRINDIRECT (LOP+RINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
198 #define LURINDIRECT (LOP+URINDIRECT)
196
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
199 #define RSTRUCT 27
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
200 #define ALLOCA 28
329
4c8f8ef8c0cf bit field continue...
kono
parents: 327
diff changeset
201 #define BIT_FIELD 29
4c8f8ef8c0cf bit field continue...
kono
parents: 327
diff changeset
202 #define RBIT_FIELD 30
331
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
203 #define BPREINC 31
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
204 #define BPOSTINC 32
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
205 #define CONV 33
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
206
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
207 #define UNARY_ARGS(i) (ADDRESS<=(i%SOP)&&(i%SOP)<=CONV)
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
208
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
209 /* binary argments */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
210
331
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
211 #define MUL 34
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
212 #define UMUL 35
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
213 #define DIV 36
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
214 #define UDIV 37
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
215 #define MOD 38
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
216 #define UMOD 39
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
217 #define ADD 40
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
218 #define SUB 41
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
219 #define CMP 42
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
220 #define RSHIFT 43
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
221 #define URSHIFT 44
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
222 #define LSHIFT 45
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
223 #define ULSHIFT 46
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
224 #define GT 47
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
225 #define UGT 48
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
226 #define GE 49
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
227 #define UGE 50
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
228 #define LT 51
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
229 #define ULT 52
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
230 #define LE 53
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
231 #define ULE 54
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
232 #define EQ 55
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
233 #define NEQ 56
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
234 #define BAND 57
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
235 #define EOR 58
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
236 #define BOR 59
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
237 #define LAND 60
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
238 #define LOR 61
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
239 #define ASS 62
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
240 #define UCMP 63
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
241 #define UCMPGE 64
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
242 #define CMPGE 65
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
243 #define CMPEQ 66
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
244 #define CMPNEQ 67
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
245 #define ASSOP 68
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
246 #define COMMA 69
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
247
331
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
248 #define CASS 70
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
249 #define CASSOP 71
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
250 #define CUASSOP 72
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
251
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
252 #define SASS (SOP+CASS)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
253 #define SASSOP (SOP+CASSOP)
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
254 #define SUASSOP (SOP+CUASSOP)
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
255
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
256 #define DASS (DOP+ASS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
257 #define DCMPGE (DOP+CMPGE)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
258 #define DCMPEQ (DOP+CMPEQ)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
259 #define DCMPNEQ (DOP+CMPNEQ)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
260 #define DASSOP (DOP+ASSOP)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
261 #define DCMP (DOP+CMP)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
262 #define DMINUS (DOP+MINUS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
263 #define DMUL (DOP+MUL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
264 #define DDIV (DOP+DIV)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
265 #define DADD (DOP+ADD)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
266 #define DSUB (DOP+SUB)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
267
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
268 #define FASS (FOP+ASS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
269 #define FCMPGE (FOP+CMPGE)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
270 #define FCMPEQ (FOP+CMPEQ)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
271 #define FCMPNEQ (FOP+CMPNEQ)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
272 #define FASSOP (FOP+ASSOP)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
273 #define FCMP (FOP+CMP)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
274 #define FMINUS (FOP+MINUS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
275 #define FMUL (FOP+MUL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
276 #define FDIV (FOP+DIV)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
277 #define FADD (FOP+ADD)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
278 #define FSUB (FOP+SUB)
78
8418d4b7caa7 *** empty log message ***
kono
parents: 77
diff changeset
279
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
280 #define LASS (LOP+CASS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
281 #define LCMPGE (LOP+CMPGE)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
282 #define LCMPEQ (LOP+CMPEQ)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
283 #define LCMPNEQ (LOP+CMPNEQ)
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
284 #define LASSOP (LOP+CASSOP)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
285 #define LUASSOP (LOP+CUASSOP)
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
286 #define LCMP (LOP+CMP)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
287 #define LMINUS (LOP+MINUS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
288 #define LMUL (LOP+MUL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
289 #define LDIV (LOP+DIV)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
290 #define LUMUL (LOP+UMUL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
291 #define LUDIV (LOP+UDIV)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
292 #define LADD (LOP+ADD)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
293 #define LSUB (LOP+SUB)
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
294
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
295
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
296 #define LMOD (LOP+MOD)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
297 #define LUMOD (LOP+UMOD)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
298 #define LLSHIFT (LOP+LSHIFT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
299 #define LULSHIFT (LOP+ULSHIFT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
300 #define LRSHIFT (LOP+RSHIFT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
301 #define LURSHIFT (LOP+URSHIFT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
302 #define LBAND (LOP+BAND)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
303 #define LEOR (LOP+EOR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
304 #define LBOR (LOP+BOR)
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
305
331
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
306 #define BASS 73
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
307 #define BASSOP 74
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
308 #define BFD_REPL 75
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
309
331
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
310 #define STASS 76
326
e5d40f8c4cce bit-field continue.
kono
parents: 318
diff changeset
311
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
312
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
313 #define BINARY_ARGS(i) (MUL<=(i%SOP)&&(i%SOP)<=STASS)
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
314
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
315 /* tarnary argments */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
316
331
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
317 #define COND 77
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
318 #define SCOND (SOP+COND)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
319 #define DCOND (DOP+COND)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
320 #define FCOND (FOP+COND)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
321 #define LCOND (LOP+COND)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
322
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
323 #define TARNARY_ARGS(i) (COND==(i%SOP))
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
324
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
325 /* not appeared as tags */
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
326
331
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
327 #define I2I 78
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
328 #define I2U 79
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
329 #define I2D 80
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
330 #define I2F 81
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
331 #define I2LL 82
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
332 #define I2ULL 83
194
114e9d64b5cc *** empty log message ***
kono
parents: 188
diff changeset
333
331
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
334 #define U2I 84
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
335 #define U2U 85
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
336 #define U2D 86
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
337 #define U2F 87
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
338 #define U2LL 88
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
339 #define U2ULL 89
194
114e9d64b5cc *** empty log message ***
kono
parents: 188
diff changeset
340
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
341 #define D2I (DOP+I2I)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
342 #define D2U (DOP+I2U)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
343 #define D2D (DOP+I2D)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
344 #define D2F (DOP+I2F)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
345 #define D2LL (DOP+I2LL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
346 #define D2ULL (DOP+I2ULL)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
347
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
348 #define F2I (FOP+I2I)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
349 #define F2U (FOP+I2U)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
350 #define F2D (FOP+I2D)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
351 #define F2F (FOP+I2F)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
352 #define F2LL (FOP+I2LL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
353 #define F2ULL (FOP+I2ULL)
194
114e9d64b5cc *** empty log message ***
kono
parents: 188
diff changeset
354
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
355 #define LL2I (LOP+I2I)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
356 #define LL2U (LOP+I2U)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
357 #define LL2D (LOP+I2D)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
358 #define LL2F (LOP+I2F)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
359 #define LL2LL (LOP+I2LL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
360 #define LL2ULL (LOP+I2ULL)
194
114e9d64b5cc *** empty log message ***
kono
parents: 188
diff changeset
361
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
362 #define ULL2I (LOP+U2I)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
363 #define ULL2U (LOP+U2U)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
364 #define ULL2D (LOP+U2D)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
365 #define ULL2F (LOP+U2F)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
366 #define ULL2LL (LOP+U2LL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
367 #define ULL2ULL (LOP+U2ULL)
194
114e9d64b5cc *** empty log message ***
kono
parents: 188
diff changeset
368
331
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
369 #define LPAR 90
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
370 #define RPAR 91
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
371 #define LBRA 92
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
372 #define RBRA 93
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
373 #define LC 94
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
374 #define RC 95
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
375 #define COLON 96
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
376 #define SM 97
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
377 #define PERIOD 98
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
378 #define ARROW 99
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
379 #define CNAME 100
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
380
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
381 /* tree node tags end */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
382
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
383 /* error number start */
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
384
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
385 #define FILERR 1
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
386 #define DCERR 2
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
387 #define RDERR 3
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
388 #define STERR 4
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
389 #define EXERR 5
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
390 #define CNERR 6
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
391 #define CHERR 7
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
392 #define GSERR 8
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
393 #define LSERR 9
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
394 #define STRERR 10
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
395 #define LNERR 11
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
396 #define EOFERR 12
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
397 #define MCERR 13
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
398 #define INCERR 14
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
399 #define HPERR 15
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
400 #define TYERR 16
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
401 #define LVERR 17
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
402 #define UDERR 18
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
403 #define OPTION 19
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
404 #define REG_ERR 20
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
405 #define CODE_ERR 21
304
9df8aa0497ea fix line continuation and #macro in string.
kono
parents: 293
diff changeset
406 #define MSERR 22
331
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
407 #define BTERR 23
f25aa4f03198 bit-field continue...
kono
parents: 329
diff changeset
408 #define INERR 24
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
409
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
410 /* error number end */
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
411
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
412 #define GSYMS 9000
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
413 #define LSYMS 500
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
414 #define MSYMS 3000
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
415
25
b7a94557bf92 *** empty log message ***
kono
parents: 20
diff changeset
416 #define FILES 10
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
417 #define MAX_INCLUDE_PATH_COUNT 10
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
418
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
419 #define HEAPSIZE 30000
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
420 #define CHEAPSIZE 356000
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
421 #define LBUFSIZE 4096
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
422 #define MACROSIZE 16000
254
5aaca4f9d96b *** empty log message ***
kono
parents: 250
diff changeset
423
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
424 typedef struct nametable {
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
425 char *nm;
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
426 int sc,ty,dsp; } NMTBL;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
427
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
428 extern int heap[HEAPSIZE];
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
429
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
430 #if FLOAT_CODE
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
431 extern int dlist2(int e1, double e2);
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
432 #endif
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
433 #if LONGLONG_CODE
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
434 extern int llist2(int e1, long long e2);
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
435 #endif
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
436 extern int list2(int e1, int e2);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
437 extern int list3(int e1, int e2, int e3);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
438 extern int list4(int e1, int e2, int e3,int e4);
318
9fe0b32a7d57 asm continue...
kono
parents: 316
diff changeset
439 extern int length(int e1);
9fe0b32a7d57 asm continue...
kono
parents: 316
diff changeset
440 extern int nth(int n,int e1);
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
441 extern int reverse0(int t1);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
442 extern int append4(int p,int a1,int a2,int a3);
309
a86612cf1a19 struct partial initialization (local struct copy)
kono
parents: 308
diff changeset
443 extern int insert_ascend(int p,int e,int eq());
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
444
33
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
445 #define car(e) (heap[(int)(e)])
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
446
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
447 #define cadr(e) (heap[((int)(e))+1])
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
448
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
449 #define caddr(e) (heap[((int)(e))+2])
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
450
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
451 #define cadddr(e) (heap[((int)(e))+3])
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
452
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
453 #if FLOAT_CODE
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
454 #define dcadr(e) (*(double*)&heap[((int)(e))+1])
f94ca1168520 float first try...
kono
parents: 78
diff changeset
455 #define dcaddr(e) (*(double*)&heap[((int)(e))+2])
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
456 #endif
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
457
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
458 #if LONGLONG_CODE
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
459 #define lcadr(e) (*(long long*)&heap[((int)(e))+1])
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
460 #define lcaddr(e) (*(long long*)&heap[((int)(e))+2])
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
461 #endif
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
462
33
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
463 /* end */