Changeset 333 in svn


Ignore:
Timestamp:
2006-12-16T17:17:29Z (9 years ago)
Author:
Xuefer
Message:

optimizer: better debug print

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/optimizer.c

    r332 r333  
    230230        op_snprint(buf_1, sizeof(buf_1), &opline->op1);
    231231        op_snprint(buf_2, sizeof(buf_2), &opline->op2);
    232         fprintf(stderr, "%3d %-15s%-5s%-20s%-20s\r\n", opline - first + line, xc_get_opcode(opline->opcode), buf_r, buf_1, buf_2);
     232        fprintf(stderr,
     233                "%3d %3d"
     234                " %-25s%-5s%-20s%-20s%5lu\r\n"
     235                , opline->lineno, opline - first + line
     236                , xc_get_opcode(opline->opcode), buf_r, buf_1, buf_2, opline->extended_value);
    233237    }
    234238}
     
    280284
    281285    fprintf(stderr,
    282             "#%-3d cnt:%-3d lno:%-3d"
     286            "\r\n==== #%-3d cnt:%-3d lno:%-3d"
    283287            " %c%c"
    284             " op1:%-3d op2:%-3d ext:%-3d fal:%-3d cat:%-3d %s\r\n"
     288            " op1:%-3d op2:%-3d ext:%-3d fal:%-3d cat:%-3d %s ====\r\n"
    285289            , bb->id, bb->count, bb->alloc ? -1 : line
    286290            , bb->used ? 'U' : ' ', bb->alloc ? 'A' : ' '
Note: See TracChangeset for help on using the changeset viewer.