Mercurial > hg > CbC > old > device
changeset 579:74bea4129e15
ia32 fix_frame removed.
author | kono |
---|---|
date | Sun, 15 Jan 2006 19:48:43 +0900 |
parents | dbde3b869a0f |
children | 31b736fb4516 |
files | mc-code-ia32.c |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mc-code-ia32.c Sun Jan 15 19:28:50 2006 +0900 +++ b/mc-code-ia32.c Sun Jan 15 19:48:43 2006 +0900 @@ -217,9 +217,8 @@ */ static int arg_offset; int disp_offset = -12; -#define func_disp_offset -12 -#define code_disp_offset 0 -// static int jump_offset = 0; +#define func_disp_offset (-12) +#define code_disp_offset (-12) static int code_disp_label; static int func_disp_label; @@ -365,8 +364,6 @@ endian = ENDIAN; arg_offset = 8; - // func_disp_offset = -12; - disp_offset = -12; MAX_REGISTER=6; MAX_DATA_REG=4; MAX_POINTER=3; @@ -676,7 +673,7 @@ emit_init(void) { int i; - for(i=0;i<MAX_REGISTER;i++) { regs[i]=0; regv[i]=0;rname[i]=i;} + for(i=0;i<REAL_MAX_REGISTER;i++) { regs[i]=0; regv[i]=0;rname[i]=i;} free_all_register(); reg_sp = 0; freg_sp = 0; @@ -687,7 +684,7 @@ { int real_v,i; real_v = -1; - for(i=0;i<MAX_REGISTER;i++) { + for(i=0;i<REAL_MAX_REGISTER;i++) { if (rname[i]==real) { real_v=i; break; @@ -1510,7 +1507,9 @@ void code_fix_frame_pointer(int disp_offset) { +#if 0 printf("\tlea %d(%%ebp),%%ebp\n",disp_offset); +#endif }