> /* > for(i=0, j=(stkptrsize-stkzerosize)/widthptr*2; i<stkzerosize; > i+=widthptr, j+=2) > if(bvget(bv, j) || bvget(bv, j+1)) > p = appendp(p, AMOVL, D_CONST, 0, D_SP+D_INDIR, > frame-stkzerosize+i); > */ > i = 0; > j = (stkptrsize-stkzerosize)/widthptr*2; > while (i < stkzerosize) { > int f = frame - stkzerosize + i; > if(bvget(bv, j) || bvget(bv, j+1)) { > p = appendp(p, AMOVL, D_CONST, 0, D_SP+D_INDIR, > f); > } > i += widthptr; > j += 2; > } > > around line 40 in $GOROOT/src/cmd/8g/ggen.c. > > Thank you, Erik, for your invaluable input, it seems to work now.
no problems. is this the minimum amount of reorginization necessary? - erik