Mercurial > hg > CbC > old > device
comparison mc-code-ia32.c @ 254:5aaca4f9d96b
*** empty log message ***
author | kono |
---|---|
date | Wed, 12 May 2004 21:44:45 +0900 |
parents | 0dcc0ec81ed2 |
children | 22949117768f |
comparison
equal
deleted
inserted
replaced
253:7b2762739df6 | 254:5aaca4f9d96b |
---|---|
22 #define SIZE_OF_FLOAT 4 | 22 #define SIZE_OF_FLOAT 4 |
23 #define SIZE_OF_DOUBLE 8 | 23 #define SIZE_OF_DOUBLE 8 |
24 #define SIZE_OF_LONGLONG 8 | 24 #define SIZE_OF_LONGLONG 8 |
25 #define ENDIAN 0 | 25 #define ENDIAN 0 |
26 | 26 |
27 int size_of_int; | 27 int size_of_int = SIZE_OF_INT; |
28 int size_of_short; | 28 int size_of_short = SIZE_OF_SHORT; |
29 int size_of_float; | 29 int size_of_float = SIZE_OF_FLOAT; |
30 int size_of_double; | 30 int size_of_double = SIZE_OF_DOUBLE; |
31 int size_of_longlong; | 31 int size_of_longlong = SIZE_OF_LONGLONG; |
32 int endian; | 32 int endian = ENDIAN; |
33 | 33 |
34 #define SAVE_STACKS 1 | 34 #define SAVE_STACKS 1 |
35 | 35 |
36 #define TEXT_EMIT_MODE 0 | 36 #define TEXT_EMIT_MODE 0 |
37 #define DATA_EMIT_MODE 1 | 37 #define DATA_EMIT_MODE 1 |
228 macro_define("__gnuc_va_list int*\n"); | 228 macro_define("__gnuc_va_list int*\n"); |
229 | 229 |
230 arg_offset = 8; | 230 arg_offset = 8; |
231 // func_disp_offset = -12; | 231 // func_disp_offset = -12; |
232 disp_offset = -12; | 232 disp_offset = -12; |
233 size_of_int = SIZE_OF_INT; | |
234 size_of_short = SIZE_OF_SHORT; | |
235 size_of_float = SIZE_OF_FLOAT; | |
236 size_of_double = SIZE_OF_DOUBLE; | |
237 size_of_longlong = SIZE_OF_LONGLONG; | |
238 endian = ENDIAN; | |
239 MAX_REGISTER=6; | 233 MAX_REGISTER=6; |
240 MAX_DATA_REG=4; | 234 MAX_DATA_REG=4; |
241 MAX_POINTER=3; | 235 MAX_POINTER=3; |
242 MAX_REGISTER_VAR=2; | 236 MAX_REGISTER_VAR=2; |
243 | 237 |