annotate mc.h @ 716:21f770a3b298

*** empty log message ***
author kono
date Fri, 16 Nov 2007 21:46:20 +0900
parents bf94c295d763
children 1f6e34c4dbbf
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
607
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
3
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
4 /************************************************************************
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
5 ** Copyright (C) 2006 Shinji Kono
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
6 ** 連絡先: 琉球大学情報工学科 河野 真治
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
7 ** (E-Mail Address: kono@ie.u-ryukyu.ac.jp)
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
8 **
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
9 ** このソースのいかなる複写,改変,修正も許諾します。ただし、
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
10 ** その際には、誰が貢献したを示すこの部分を残すこと。
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
11 ** 再配布や雑誌の付録などの問い合わせも必要ありません。
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
12 ** 営利利用も上記に反しない範囲で許可します。
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
13 ** バイナリの配布の際にはversion messageを保存することを条件とします。
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
14 ** このプログラムについては特に何の保証もしない、悪しからず。
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
15 **
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
16 ** Everyone is permitted to do anything on this program
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
17 ** including copying, modifying, improving,
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
18 ** as long as you don't try to pretend that you wrote it.
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
19 ** i.e., the above copyright notice has to appear in all copies.
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
20 ** Binary distribution requires original version messages.
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
21 ** You don't have to ask before copying, redistribution or publishing.
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
22 ** THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE.
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
23 ***********************************************************************/
e055df7c1082 *** empty log message ***
kono
parents: 602
diff changeset
24
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
25 #define FLOAT_CODE 1
237
1933266f1efa long long ia32 (imcomplete)
kono
parents: 235
diff changeset
26 #define LONGLONG_CODE 1
292
6d4231b6f9fe switch statement prepare
kono
parents: 278
diff changeset
27 #define CASE_CODE 1
316
22d92986c7f7 asm, valued statement, local decls continue...
kono
parents: 313
diff changeset
28 #define ASM_CODE 1
329
4c8f8ef8c0cf bit field continue...
kono
parents: 327
diff changeset
29 #define BIT_FIELD_CODE 1
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
30
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
31 /* reserved word start */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
32
482
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
33 /* type ( keyword ) */
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
34
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
35 #define INT (-1)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
36 #define UNSIGNED (-2)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
37 #define CHAR (-3)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
38 #define UCHAR (-4)
162
0c604d2ff585 *** empty log message ***
kono
parents: 150
diff changeset
39 #define POINTER (-5)
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
40 #define ARRAY (-6)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
41 #define STRUCT (-7)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
42 #define UNION (-8)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
43 #define FUNCTION (-9)
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
44
482
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
45 #define SIGNED (-10)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
46 #define LONG (-11)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
47 #define SHORT (-12)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
48 #define USHORT (-13)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
49 #define VOID (-14)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
50 #define CODE (-15)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
51 #define ENUM (-16)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
52
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
53 #define FLOAT (-17)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
54 #define DOUBLE (-18)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
55 #define LONGLONG (-19)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
56 #define ULONGLONG (-20)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
57
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
58 /* type qualifier */
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
59
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
60 #define KONST (-21)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
61 #define STATIC (-22)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
62 #define EXTRN (-23)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
63 #define EXTRN1 (-24)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
64 #define VOLATILE (-25)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
65 #define RESTRICT (-26)
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
66 #define INLINE (-27)
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
67 #define NOINLINE (-28)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
68 #define REGISTER (-29)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
69 #define FREGISTER (-30)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
70 #define DREGISTER (-31)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
71 #define LREGISTER (-32)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
72 #define POSSIBLE_VALUES (-33)
482
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
73
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
74 #define DOTS (-34)
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
75
482
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
76 /* keyword */
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
77
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
78 #define GOTO (-35)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
79 #define RETURN (-36)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
80 #define BREAK (-37)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
81 #define CONTINUE (-38)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
82 #define IF (-39)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
83 #define ELSE (-40)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
84 #define FOR (-41)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
85 #define DO (-42)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
86 #define WHILE (-43)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
87 #define SWITCH (-44)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
88 #define CASE (-45)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
89 #define DEFAULT (-46)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
90 #define RESERVE (-47)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
91 #define TAG (-48)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
92 #define FIELD (-49)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
93 #define IDENT (-50)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
94 #define MACRO (-51)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
95 #define BLABEL (-52)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
96 #define FLABEL (-53)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
97 #define TYPEDEF (-54)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
98 #define SIZEOF (-55)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
99 #define TYPE (-56)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
100 #define DEFINED (-57)
482
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
101
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
102 #define ENVIRONMENT (-58)
482
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
103
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
104 #define FMACRO (-59)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
105 #define LMACRO (-60)
482
8370ba6e8557 *** empty log message ***
kono
parents: 467
diff changeset
106
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
107 #define TYPEOF (-61)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
108 #define ASM (-62)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
109
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
110 #define C_FILE (-63)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
111 #define C_FUNCTION (-64)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
112 #define C_LINE (-65)
544
dbfd6e88e2c3 s-dandy compile OK
kono
parents: 526
diff changeset
113
691
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
114 #define ALIGNED (-66)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
115 #define GENERATED (-67)
25115b50d033 *** empty log message ***
kono
parents: 690
diff changeset
116 #define NORETURN (-68)
648
234bc5f79a11 alignement attribute (working)
kono
parents: 646
diff changeset
117
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
118 /* reserved word end */
78
8418d4b7caa7 *** empty log message ***
kono
parents: 77
diff changeset
119
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
120 #define EMPTY (-99)
103
f849af4b5ea9 *** empty log message ***
kono
parents: 101
diff changeset
121
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
122 /* mode start */
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
123 #define TOP 0
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
124 #define GDECL 1
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
125 #define GSDECL 2
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
126 #define GUDECL 3
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
127 #define ADECL 4
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
128 #define LDECL 5
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
129 #define LSDECL 6
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
130 #define LUDECL 7
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
131 #define STADECL 8
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
132 #define STAT 9
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
133 #define GTDECL 10
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
134 #define LTDECL 11
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
135 #define IFDEF 12
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
136 #define MDECL 13
176
kono
parents: 174
diff changeset
137 #define GEDECL 14
kono
parents: 174
diff changeset
138 #define LEDECL 15
362
5cf12c7a3274 local label first try
kono
parents: 358
diff changeset
139 #define LLDECL 16
5cf12c7a3274 local label first try
kono
parents: 358
diff changeset
140 #define SFDINIT 17
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
141 /* mode end */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
142
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
143 #define US 1
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
144 #define AS 10000
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
145 #define SOP 200
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
146 #define COP 400
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
147 #define DOP 600
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
148 #define FOP 800
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
149 #define LOP 1000
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
150
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
151 /* tree node tags start */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
152
316
22d92986c7f7 asm, valued statement, local decls continue...
kono
parents: 313
diff changeset
153 #define LIST_ARGS(i) (i==FUNCTION||i==CODE||i==ASM)
599
df04bc5fd5fe *** empty log message ***
kono
parents: 590
diff changeset
154 #define OP(i) (i%SOP) /* tag value without attribute */
df04bc5fd5fe *** empty log message ***
kono
parents: 590
diff changeset
155 #define OP_TAG(i) (((i)/SOP)*SOP) /* attribute of tag */
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
156
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
157 /* nullary argments */
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
158
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
159 #define GVAR 1
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
160 #define RGVAR 2
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
161 #define URGVAR 3
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
162 #define LVAR 4
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
163 #define RLVAR 5
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
164 #define URLVAR 6
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
165 #define CRGVAR (COP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
166 #define CURGVAR (COP+URGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
167 #define CRLVAR (COP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
168 #define CURLVAR (COP+URLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
169 #define FRGVAR (FOP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
170 #define FRLVAR (FOP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
171 #define DRGVAR (DOP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
172 #define DRLVAR (DOP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
173 #define SRGVAR (SOP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
174 #define SURGVAR (SOP+URGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
175 #define SRLVAR (SOP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
176 #define SURLVAR (SOP+URLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
177 #define LRGVAR (LOP+RGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
178 #define LURGVAR (LOP+URGVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
179 #define LRLVAR (LOP+RLVAR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
180 #define LURLVAR (LOP+URLVAR)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
181
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
182 #define CONST 7
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
183 #define DCONST (DOP+CONST)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
184 #define FCONST (FOP+CONST)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
185 #define LCONST (LOP+CONST)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
186 #define STRING 8
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
187 #define FNAME 9
450
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
188 #define LCALL 10
452
8e3284b0a8c9 minor update
kono
parents: 451
diff changeset
189 #define COMMENT 11
8e3284b0a8c9 minor update
kono
parents: 451
diff changeset
190 #define DECL 12
8e3284b0a8c9 minor update
kono
parents: 451
diff changeset
191 #define COMP 13
602
429ec87e03e7 *** empty log message ***
kono
parents: 599
diff changeset
192 #define IVAR 14
429ec87e03e7 *** empty log message ***
kono
parents: 599
diff changeset
193 #define RIVAR 15
616
2ba903c8e749 builtin_fabs
kono
parents: 612
diff changeset
194 #define BUILTIN_INF 16
2ba903c8e749 builtin_fabs
kono
parents: 612
diff changeset
195 #define BUILTIN_INFF 17
2ba903c8e749 builtin_fabs
kono
parents: 612
diff changeset
196 #define BUILTIN_INFL 18
676
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
197 #define LABEL 19
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
198
450
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
199 #define NULLARY_ARGS(i) (i==RETURN||i==ENVIRONMENT||i==LCALL||i==REGISTER||i==DREGISTER||i==FREGISTER||i==LREGISTER||(GVAR<=(i%SOP)&&(i%SOP)<=LABEL))
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
200
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
201 /* unary argments */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
202
676
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
203 #define ADDRESS 20
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
204 #define MINUS 21
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
205 #define LNOT 22
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
206 #define BNOT 23
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
207 #define INC 24
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
208 #define PERIOD 25
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
209 #define ARROW 26
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
210 #define POSTINC 27
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
211 #define UPOSTINC 28
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
212 #define PREINC 29
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
213 #define UPREINC 30
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
214 #define POSTDEC 31
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
215 #define UPOSTDEC 32
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
216 #define PREDEC 33
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
217 #define UPREDEC 34
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
218 #define DEC 35
196
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
219 #define CPOSTINC (COP+POSTINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
220 #define CUPOSTINC (COP+UPOSTINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
221 #define CPREINC (COP+PREINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
222 #define CUPREINC (COP+UPREINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
223 #define CPOSTDEC (COP+POSTDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
224 #define CUPOSTDEC (COP+UPOSTDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
225 #define CPREDEC (COP+CPREDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
226 #define CUPREDEC (COP+UPREDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
227 #define SPOSTINC (SOP+POSTINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
228 #define SUPOSTINC (SOP+UPOSTINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
229 #define SPREINC (SOP+PREINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
230 #define SUPREINC (SOP+UPREINC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
231 #define SPOSTDEC (SOP+POSTDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
232 #define SUPOSTDEC (SOP+UPOSTDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
233 #define SPREDEC (SOP+PREDEC)
5f70abd9453d *** empty log message ***
kono
parents: 195
diff changeset
234 #define SUPREDEC (SOP+UPREDEC)
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
235 #define FPOSTINC (FOP+POSTINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
236 #define FPREINC (FOP+PREINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
237 #define DPOSTINC (DOP+POSTINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
238 #define DPREINC (DOP+PREINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
239 #define LPOSTINC (LOP+POSTINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
240 #define LPREINC (LOP+PREINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
241 #define LUPOSTINC (LOP+UPOSTINC)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
242 #define LUPREINC (LOP+UPREINC)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
243 #define INDIRECT 36
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
244 #define RINDIRECT 37
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
245 #define URINDIRECT 38
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
246 #define CRINDIRECT (COP+RINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
247 #define CURINDIRECT (COP+URINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
248 #define SRINDIRECT (SOP+RINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
249 #define SURINDIRECT (SOP+URINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
250 #define FRINDIRECT (FOP+RINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
251 #define DRINDIRECT (DOP+RINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
252 #define LRINDIRECT (LOP+RINDIRECT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
253 #define LURINDIRECT (LOP+URINDIRECT)
676
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
254 #define RSTRUCT 39
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
255 #define ALLOCA 40
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
256 #define BUILTINP 41
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
257 #define BUILTIN_EXPECT 42
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
258 #define BUILTIN_FABS 43
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
259 #define BUILTIN_FABSF 44
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
260 #define BUILTIN_FABSL 45
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
261 #define ATTRIBUTE 46
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
262 #define BIT_FIELD 47
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
263 #define RBIT_FIELD 48
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
264 #define BPREINC 49
5e71527f9fd6 *** empty log message ***
kono
parents: 673
diff changeset
265 #define BPOSTINC 50
680
f536897fa3cb *** empty log message ***
kono
parents: 676
diff changeset
266 #define CAST 51
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
267 #define DECL_DATA 52
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
268 #define CONV 53
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
269
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
270 #define UNARY_ARGS(i) (ADDRESS<=(i%SOP)&&(i%SOP)<=CONV)
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
271
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
272 /* binary argments */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
273
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
274 #define MUL 54
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
275 #define UMUL 55
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
276 #define DIV 56
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
277 #define UDIV 57
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
278 #define MOD 58
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
279 #define UMOD 59
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
280 #define ADD 60
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
281 #define SUB 61
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
282 #define CMP 62
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
283 #define RSHIFT 63
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
284 #define URSHIFT 64
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
285 #define LSHIFT 65
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
286 #define ULSHIFT 66
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
287 #define GT 67
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
288 #define UGT 68
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
289 #define GE 69
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
290 #define UGE 70
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
291 #define LT 71
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
292 #define ULT 72
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
293 #define LE 73
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
294 #define ULE 74
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
295 #define EQ 75
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
296 #define NEQ 76
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
297 #define BAND 77
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
298 #define EOR 78
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
299 #define BOR 79
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
300 #define LAND 80
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
301 #define LOR 81
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
302 #define ASS 82
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
303 #define UCMP 83
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
304 #define UCMPGE 84
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
305 #define CMPGE 85
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
306 #define CMPEQ 86
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
307 #define CMPNEQ 87
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
308 #define ASSOP 88
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
309 #define UASSOP 89
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
310 #define COMMA 90
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
311
612
26daeeef30a0 *** empty log message ***
kono
parents: 609
diff changeset
312 #define CASS (COP+ASS)
26daeeef30a0 *** empty log message ***
kono
parents: 609
diff changeset
313 #define CASSOP (COP+ASSOP)
26daeeef30a0 *** empty log message ***
kono
parents: 609
diff changeset
314 #define CUASSOP (COP+UASSOP)
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
315
612
26daeeef30a0 *** empty log message ***
kono
parents: 609
diff changeset
316 #define SASS (SOP+ASS)
26daeeef30a0 *** empty log message ***
kono
parents: 609
diff changeset
317 #define SASSOP (SOP+ASSOP)
26daeeef30a0 *** empty log message ***
kono
parents: 609
diff changeset
318 #define SUASSOP (SOP+UASSOP)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
319
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
320 #define DASS (DOP+ASS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
321 #define DCMPGE (DOP+CMPGE)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
322 #define DCMPEQ (DOP+CMPEQ)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
323 #define DCMPNEQ (DOP+CMPNEQ)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
324 #define DASSOP (DOP+ASSOP)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
325 #define DCMP (DOP+CMP)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
326 #define DMINUS (DOP+MINUS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
327 #define DMUL (DOP+MUL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
328 #define DDIV (DOP+DIV)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
329 #define DADD (DOP+ADD)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
330 #define DSUB (DOP+SUB)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
331
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
332 #define FASS (FOP+ASS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
333 #define FCMPGE (FOP+CMPGE)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
334 #define FCMPEQ (FOP+CMPEQ)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
335 #define FCMPNEQ (FOP+CMPNEQ)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
336 #define FASSOP (FOP+ASSOP)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
337 #define FCMP (FOP+CMP)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
338 #define FMINUS (FOP+MINUS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
339 #define FMUL (FOP+MUL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
340 #define FDIV (FOP+DIV)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
341 #define FADD (FOP+ADD)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
342 #define FSUB (FOP+SUB)
78
8418d4b7caa7 *** empty log message ***
kono
parents: 77
diff changeset
343
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
344 #define LASS (LOP+CASS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
345 #define LCMPGE (LOP+CMPGE)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
346 #define LCMPEQ (LOP+CMPEQ)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
347 #define LCMPNEQ (LOP+CMPNEQ)
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
348 #define LASSOP (LOP+CASSOP)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
349 #define LUASSOP (LOP+CUASSOP)
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
350 #define LCMP (LOP+CMP)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
351 #define LMINUS (LOP+MINUS)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
352 #define LMUL (LOP+MUL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
353 #define LDIV (LOP+DIV)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
354 #define LUMUL (LOP+UMUL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
355 #define LUDIV (LOP+UDIV)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
356 #define LADD (LOP+ADD)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
357 #define LSUB (LOP+SUB)
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
358
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
359
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
360 #define LMOD (LOP+MOD)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
361 #define LUMOD (LOP+UMOD)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
362 #define LLSHIFT (LOP+LSHIFT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
363 #define LULSHIFT (LOP+ULSHIFT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
364 #define LRSHIFT (LOP+RSHIFT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
365 #define LURSHIFT (LOP+URSHIFT)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
366 #define LBAND (LOP+BAND)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
367 #define LEOR (LOP+EOR)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
368 #define LBOR (LOP+BOR)
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
369
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
370 #define BASS 91
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
371 #define BASSOP 92
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
372 #define BFD_REPL 93
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
373
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
374 #define JUMP 94
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
375 #define DECL_DATA_ARRAY 95
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
376 #define DECL_DATA_LIST 96
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
377 #define DECL_DATA_FIELD 97
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 607
diff changeset
378
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
379 #define STASS 98
326
e5d40f8c4cce bit-field continue.
kono
parents: 318
diff changeset
380
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
381
651
c9a489ac3fc7 *** empty log message ***
kono
parents: 648
diff changeset
382 #define BINARY_ARGS(i) ((MUL<=(i%SOP)&&(i%SOP)<=STASS)||i==ARRAY)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
383
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 607
diff changeset
384 /* ternary argments */
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
385
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
386 #define COND 99
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
387 #define UCOND 100
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
388 #define SCOND (SOP+COND)
490
95fcc858fd1c cond unsigned fix.
kono
parents: 482
diff changeset
389 #define SUCOND (SOP+UCOND)
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
390 #define DCOND (DOP+COND)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
391 #define FCOND (FOP+COND)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
392 #define LCOND (LOP+COND)
490
95fcc858fd1c cond unsigned fix.
kono
parents: 482
diff changeset
393 #define LUCOND (LOP+UCOND)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
394
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 607
diff changeset
395 #define TERNARY_ARGS(i) (COND==(i%SOP)||UCOND==(i%SOP))
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
396
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
397 /* not appeared as tags */
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
398
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
399 #define LPAR 101
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
400 #define RPAR 102
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
401 #define LBRA 103
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
402 #define RBRA 104
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
403 #define LC 105
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
404 #define RC 106
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
405 #define COLON 107
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
406 #define SM 108
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
407 #define CNAME 109
194
114e9d64b5cc *** empty log message ***
kono
parents: 188
diff changeset
408
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
409 #define I2C 110
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
410 #define I2S 111
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
411 #define I2I 112
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
412 #define I2U 113
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
413 #define I2D 114
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
414 #define I2F 115
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
415 #define I2LL 116
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
416 #define I2ULL 117
353
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents: 351
diff changeset
417
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
418 #define U2UC 118
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
419 #define U2US 119
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
420 #define U2I 120
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
421 #define U2U 121
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
422 #define U2D 122
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
423 #define U2F 123
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
424 #define U2LL 124
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
425 #define U2ULL 125
353
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents: 351
diff changeset
426
194
114e9d64b5cc *** empty log message ***
kono
parents: 188
diff changeset
427
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
428 #define D2I (DOP+I2I)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
429 #define D2U (DOP+I2U)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
430 #define D2D (DOP+I2D)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
431 #define D2F (DOP+I2F)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
432 #define D2LL (DOP+I2LL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
433 #define D2ULL (DOP+I2ULL)
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
434
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
435 #define F2I (FOP+I2I)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
436 #define F2U (FOP+I2U)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
437 #define F2D (FOP+I2D)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
438 #define F2F (FOP+I2F)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
439 #define F2LL (FOP+I2LL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
440 #define F2ULL (FOP+I2ULL)
194
114e9d64b5cc *** empty log message ***
kono
parents: 188
diff changeset
441
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
442 #define LL2I (LOP+I2I)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
443 #define LL2U (LOP+I2U)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
444 #define LL2D (LOP+I2D)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
445 #define LL2F (LOP+I2F)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
446 #define LL2LL (LOP+I2LL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
447 #define LL2ULL (LOP+I2ULL)
194
114e9d64b5cc *** empty log message ***
kono
parents: 188
diff changeset
448
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
449 #define ULL2I (LOP+U2I)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
450 #define ULL2U (LOP+U2U)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
451 #define ULL2D (LOP+U2D)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
452 #define ULL2F (LOP+U2F)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
453 #define ULL2LL (LOP+U2LL)
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
454 #define ULL2ULL (LOP+U2ULL)
194
114e9d64b5cc *** empty log message ***
kono
parents: 188
diff changeset
455
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
456 /* tree node tags end */
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
457
453
1e5ca85d3f97 inline on going...
kono
parents: 452
diff changeset
458 /* statement start */
1e5ca85d3f97 inline on going...
kono
parents: 452
diff changeset
459
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
460 #define ST_DECL 126
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
461 #define ST_IF 127
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
462 #define ST_DO 128
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
463 #define ST_WHILE 129
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
464 #define ST_FOR 130
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
465 #define ST_SWITCH 131
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
466 #define ST_COMP 132
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
467 #define ST_BREAK 133
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
468 #define ST_CONTINUE 134
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
469 #define ST_CASE 135
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
470 #define ST_DEFAULT 136
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
471 #define ST_RETURN 137
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
472 #define ST_GOTO 138
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
473 #define ST_ASM 139
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
474 #define ST_LABEL 140
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
475 #define ST_OP 141
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
476 #define ST_COMMENT 142
453
1e5ca85d3f97 inline on going...
kono
parents: 452
diff changeset
477
509
e58848f6ebc1 inline continue...
kono
parents: 500
diff changeset
478 #define IS_STATEMENT(i) (i==INLINE||(ST_DECL<=i&&i<=ST_COMMENT))
453
1e5ca85d3f97 inline on going...
kono
parents: 452
diff changeset
479
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
480 #define HAS_ADDRESS 143
526
9ff5cd7afe2f *** empty log message ***
kono
parents: 523
diff changeset
481
453
1e5ca85d3f97 inline on going...
kono
parents: 452
diff changeset
482 /* statement end */
1e5ca85d3f97 inline on going...
kono
parents: 452
diff changeset
483
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
484 /* error number start */
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
485
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
486 #define FILERR 1
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
487 #define DCERR 2
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
488 #define RDERR 3
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
489 #define STERR 4
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
490 #define EXERR 5
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
491 #define CNERR 6
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
492 #define CHERR 7
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
493 #define GSERR 8
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
494 #define LSERR 9
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
495 #define STRERR 10
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
496 #define LNERR 11
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
497 #define EOFERR 12
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
498 #define MCERR 13
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
499 #define INCERR 14
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
500 #define HPERR 15
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
501 #define TYERR 16
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
502 #define LVERR 17
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
503 #define UDERR 18
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
504 #define OPTION 19
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
505 #define REG_ERR 20
389
68fb244e0e3c mc-arm generates code-gen-all.s with no error,
kono
parents: 363
diff changeset
506 #define RGERR 21
68fb244e0e3c mc-arm generates code-gen-all.s with no error,
kono
parents: 363
diff changeset
507 #define CODE_ERR 22
68fb244e0e3c mc-arm generates code-gen-all.s with no error,
kono
parents: 363
diff changeset
508 #define MSERR 23
68fb244e0e3c mc-arm generates code-gen-all.s with no error,
kono
parents: 363
diff changeset
509 #define BTERR 24
68fb244e0e3c mc-arm generates code-gen-all.s with no error,
kono
parents: 363
diff changeset
510 #define HSERR 25
68fb244e0e3c mc-arm generates code-gen-all.s with no error,
kono
parents: 363
diff changeset
511 #define NMERR 26
68fb244e0e3c mc-arm generates code-gen-all.s with no error,
kono
parents: 363
diff changeset
512 #define MMERR 27
68fb244e0e3c mc-arm generates code-gen-all.s with no error,
kono
parents: 363
diff changeset
513 #define INERR 28
523
009289571b54 *** empty log message ***
kono
parents: 509
diff changeset
514 #define AGERR 29
009289571b54 *** empty log message ***
kono
parents: 509
diff changeset
515 #define ILERR 30
558
528fed826f17 const value switch statement prune.
kono
parents: 544
diff changeset
516 #define CSERR 31
572
388baa7d4bee more strict errors.
kono
parents: 566
diff changeset
517 #define GTERR 32
388baa7d4bee more strict errors.
kono
parents: 566
diff changeset
518 #define FNERR 33
388baa7d4bee more strict errors.
kono
parents: 566
diff changeset
519 #define UCERR 34
388baa7d4bee more strict errors.
kono
parents: 566
diff changeset
520 #define UFERR 35
574
aad312f61654 remove too much inmode.
kono
parents: 572
diff changeset
521 #define ENERR 36
655
cddab906095e struct init in function arg (or other expression).
kono
parents: 651
diff changeset
522 #define RETERR 37
681
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
523 #define UFLDERR 38
e16b34f2b386 DECL_DATA has parse tree now.
kono
parents: 680
diff changeset
524 #define SIERR 39
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
525
164
1c2a9232ea93 mc.h generation
kono
parents: 162
diff changeset
526 /* error number end */
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
527
526
9ff5cd7afe2f *** empty log message ***
kono
parents: 523
diff changeset
528 /* ctmode bit */
9ff5cd7afe2f *** empty log message ***
kono
parents: 523
diff changeset
529
461
2a49dfe59540 attribute
kono
parents: 456
diff changeset
530 #define KONST_BIT 1
2a49dfe59540 attribute
kono
parents: 456
diff changeset
531 #define VOLATILE_BIT 2
2a49dfe59540 attribute
kono
parents: 456
diff changeset
532 #define RESTRICT_BIT 4
2a49dfe59540 attribute
kono
parents: 456
diff changeset
533
25
b7a94557bf92 *** empty log message ***
kono
parents: 20
diff changeset
534 #define FILES 10
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
535 #define MAX_INCLUDE_PATH_COUNT 10
448
422415e15eb8 *** empty log message ***
kono
parents: 447
diff changeset
536 /*
422415e15eb8 *** empty log message ***
kono
parents: 447
diff changeset
537 For this comiler 8192*2 is Ok. Linux kernel requires 8192*4.
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 607
diff changeset
538 we need automatic increment of gsyms?
448
422415e15eb8 *** empty log message ***
kono
parents: 447
diff changeset
539 */
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 607
diff changeset
540 #define GSYMS (8192*32)
690
5d3b4669854c fix prindirect
kono
parents: 681
diff changeset
541 #define HEAPSIZE 150000
452
8e3284b0a8c9 minor update
kono
parents: 451
diff changeset
542 #define CHEAPSIZE (sizeof(NMTBL)*8192)
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
543 #define LBUFSIZE 4096
347
cef4d8eb9a26 name table reconfigure continue...
kono
parents: 346
diff changeset
544 #define STRSIZE 4096
254
5aaca4f9d96b *** empty log message ***
kono
parents: 250
diff changeset
545
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
546 typedef struct nametable {
327
da2e3f2d127d macro/codegen reorganization
kono
parents: 326
diff changeset
547 char *nm;
348
e77b3a7002ad name table reconfigure compiled. debug start.
kono
parents: 347
diff changeset
548 struct nametable *next;
445
kono
parents: 435
diff changeset
549 int sc,attr;
712
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
550 int ty,dsp;
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
551 union {
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
552 struct nametable *nptr;
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
553 char *nm;
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
554 } u;
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
555 } NMTBL;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
556
452
8e3284b0a8c9 minor update
kono
parents: 451
diff changeset
557 extern int *heap; /* heap area (in cheap ) */
8e3284b0a8c9 minor update
kono
parents: 451
diff changeset
558 extern NMTBL *global_list; /* list of all global NMTBL */
8e3284b0a8c9 minor update
kono
parents: 451
diff changeset
559 extern NMTBL *local_static_list; /* list of local static variable */
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
560
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
561 #if FLOAT_CODE
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
562 extern int dlist2(int e1, double e2);
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
563 #endif
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
564 #if LONGLONG_CODE
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
565 extern int llist2(int e1, long long e2);
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
566 #endif
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
567 extern int list2(int e1, int e2);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
568 extern int list3(int e1, int e2, int e3);
711
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
569 extern int list3n(int e1, int e2, NMTBL *e3);
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
570 extern int glist3n(int e1, int e2, NMTBL *e3);
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
571 extern int list4(int e1, int e2, int e3,int e4);
711
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
572 extern int list4n(int e1, int e2, int e3,NMTBL *e4);
712
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
573 extern int list4s(int e1, int e2, int e3,char *e4);
711
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
574 extern int glist4n(int e1, int e2, int e3,NMTBL *e4);
450
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
575 extern int list5(int e1, int e2, int e3,int e4,int e5);
712
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
576 extern int list5n(int e1, int e2, int e3,int e4,NMTBL * e5);
318
9fe0b32a7d57 asm continue...
kono
parents: 316
diff changeset
577 extern int length(int e1);
464
d88f08d81bba inline continue....
kono
parents: 461
diff changeset
578 extern int getfree(int size);
318
9fe0b32a7d57 asm continue...
kono
parents: 316
diff changeset
579 extern int nth(int n,int e1);
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
580 extern int reverse0(int t1);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
581 extern int append4(int p,int a1,int a2,int a3);
450
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
582 extern int append5(int p,int a1,int a2,int a3,int a4);
309
a86612cf1a19 struct partial initialization (local struct copy)
kono
parents: 308
diff changeset
583 extern int insert_ascend(int p,int e,int eq());
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents: 59
diff changeset
584
347
cef4d8eb9a26 name table reconfigure continue...
kono
parents: 346
diff changeset
585 extern void free_nptr(NMTBL *n);
cef4d8eb9a26 name table reconfigure continue...
kono
parents: 346
diff changeset
586 extern NMTBL *get_nptr();
346
969089695850 name reconfigure.... continue...
kono
parents: 331
diff changeset
587
716
21f770a3b298 *** empty log message ***
kono
parents: 712
diff changeset
588 #define align(x,alig) ((x+(alig-1))&~(alig-1))
21f770a3b298 *** empty log message ***
kono
parents: 712
diff changeset
589
609
af6b9ae79583 modificatioon for udpcl
kono
parents: 607
diff changeset
590 // mc-tree.c
af6b9ae79583 modificatioon for udpcl
kono
parents: 607
diff changeset
591
af6b9ae79583 modificatioon for udpcl
kono
parents: 607
diff changeset
592 extern void print_expr(int e, FILE *vout);
af6b9ae79583 modificatioon for udpcl
kono
parents: 607
diff changeset
593
716
21f770a3b298 *** empty log message ***
kono
parents: 712
diff changeset
594
709
8b54c40081de *** empty log message ***
kono
parents: 704
diff changeset
595 #if 1
450
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
596 extern int heapsize;
660
3e1dba5758d8 *** empty log message ***
kono
parents: 655
diff changeset
597 #define CHECK_HEAP(b) ({int _k=(int)(b);if(_k>heapsize||_k<=0)error(-1);_k;})
450
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
598 #else
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
599 #define CHECK_HEAP(b) (b)
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
600 #endif
33
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
601
450
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
602 #define car(e) (heap[(int)(CHECK_HEAP(e))])
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
603
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
604 #define cadr(e) (heap[((int)(CHECK_HEAP(e)))+1])
33
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
605
450
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
606 #define caddr(e) (heap[((int)(CHECK_HEAP(e)))+2])
33
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
607
450
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
608 #define cadddr(e) (heap[((int)(CHECK_HEAP(e)))+3])
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
609
eaf9e2746c83 parallel assign for simple expr. (too complex solution)
kono
parents: 449
diff changeset
610 #define caddddr(e) (heap[((int)(CHECK_HEAP(e)))+4])
449
c55363eff5e5 parallel assignment (modify not completed)
kono
parents: 448
diff changeset
611
711
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
612 #define ncaddr(e) (*(NMTBL**)&heap[((int)(e))+2])
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
613
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
614 #define ncadddr(e) (*(NMTBL**)&heap[((int)(e))+3])
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
615
712
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
616 #define ncaddddr(e) (*(NMTBL**)&heap[((int)(e))+4])
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
617
711
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
618 #define vcaddr(e) (*(void**)&heap[((int)(e))+2])
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
619
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
620 #define vcadddr(e) (*(void**)&heap[((int)(e))+3])
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
621
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
622 #define pcaddr(e) (*(int**)&heap[((int)(e))+2])
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
623
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
624 #define pcadddr(e) (*(int**)&heap[((int)(e))+3])
35e6841ba01a pointer fixes (partial)
kono
parents: 709
diff changeset
625
712
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
626 #define scaddr(e) (*(char**)&heap[((int)(e))+2])
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
627 #ifdef NOTHREAD
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
628 my_spe_run_thread(t_args);
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
629 #endif
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
630 #define scadddr(e) (*(char**)&heap[((int)(e))+3])
bf94c295d763 *** empty log message ***
kono
parents: 711
diff changeset
631
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
632 #if FLOAT_CODE
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
633 #define dcadr(e) (*(double*)&heap[((int)(e))+1])
f94ca1168520 float first try...
kono
parents: 78
diff changeset
634 #define dcaddr(e) (*(double*)&heap[((int)(e))+2])
195
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
635 #endif
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
636
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
637 #if LONGLONG_CODE
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
638 #define lcadr(e) (*(long long*)&heap[((int)(e))+1])
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
639 #define lcaddr(e) (*(long long*)&heap[((int)(e))+2])
c193120ee2a6 *** empty log message ***
kono
parents: 194
diff changeset
640 #endif
81
f94ca1168520 float first try...
kono
parents: 78
diff changeset
641
33
8500dbb69dd9 bad macro processing. give up this method.
kono
parents: 32
diff changeset
642 /* end */