Mercurial > hg > CbC > old > device
comparison mc-code-ia32.c @ 205:a50f90d0b63a
*** empty log message ***
author | kono |
---|---|
date | Thu, 15 Apr 2004 01:01:51 +0900 |
parents | 4c614334f3d0 |
children | 32f54ab63b35 |
comparison
equal
deleted
inserted
replaced
204:4c614334f3d0 | 205:a50f90d0b63a |
---|---|
107 fregv calue in floating point register | 107 fregv calue in floating point register |
108 */ | 108 */ |
109 | 109 |
110 static int dreg; /* general temporal register */ | 110 static int dreg; /* general temporal register */ |
111 | 111 |
112 int ia32regs[REAL_MAX_REGISTER]; | 112 static int ia32regs[REAL_MAX_REGISTER]; |
113 int ia32regv[REAL_MAX_REGISTER]; | 113 static int ia32regv[REAL_MAX_REGISTER]; |
114 int ia32rname[REAL_MAX_REGISTER]; | 114 static int ia32rname[REAL_MAX_REGISTER]; |
115 | 115 |
116 int *regv = ia32regv; | 116 static int *regv = ia32regv; |
117 int *regs = ia32regs; | 117 static int *regs = ia32regs; |
118 static int *rname = ia32rname; | 118 static int *rname = ia32rname; |
119 | 119 |
120 int ia32fregs[1]; | 120 static int ia32fregs[1]; |
121 int ia32fregv[1]; | 121 static int ia32fregv[1]; |
122 | 122 |
123 int freg; | 123 static int freg; |
124 int *fregv = ia32fregv; | 124 static int *fregv = ia32fregv; |
125 int *fregs = ia32fregs; | 125 static int *fregs = ia32fregs; |
126 | 126 |
127 | 127 |
128 #define REG_EAX 0 | 128 #define REG_EAX 0 |
129 #define REG_EBX 1 | 129 #define REG_EBX 1 |
130 #define REG_ECX 2 | 130 #define REG_ECX 2 |
229 | 229 |
230 void | 230 void |
231 code_gexpr(int e){ | 231 code_gexpr(int e){ |
232 } | 232 } |
233 | 233 |
234 int | |
235 register_var(int r) { | |
236 return virtual(r+REG_ESI); | |
237 } | |
238 | |
239 int | 234 int |
240 get_register(void) | 235 get_register(void) |
241 { /* 使われていないレジスタを調べる */ | 236 { /* 使われていないレジスタを調べる */ |
242 int i; | 237 int i; |
243 for(i=0;i<MAX_REGISTER;i++) { | 238 for(i=0;i<MAX_REGISTER;i++) { |
282 int | 277 int |
283 get_lregister_var(NMTBL *n) | 278 get_lregister_var(NMTBL *n) |
284 { | 279 { |
285 return list2(LVAR,new_lvar(size_of_longlong)); | 280 return list2(LVAR,new_lvar(size_of_longlong)); |
286 } | 281 } |
282 | |
283 int | |
284 get_lregister() | |
285 { | |
286 return -1; | |
287 } | |
288 | |
287 | 289 |
288 int | 290 int |
289 register_full(void) | 291 register_full(void) |
290 { | 292 { |
291 int i; | 293 int i; |