patch to print large constants as hex values
Nick Clifton
nickc@cygnus.com
Fri Apr 30 22:47:00 GMT 1999
Hi Horst,
: > fprintf (outfile, " ");
: > fprintf (outfile, HOST_WIDE_INT_PRINT_DEC, XWINT (in_rtx, i));
: > + fprintf (outfile, " [");
: > + fprintf (outfile, HOST_WIDE_INT_PRINT_HEX, XWINT (in_rtx, i));
: > + fprintf (outfile, "]");
:
: Why not just one fprintf(3)? Whatever magic HOST_WIDE_INT_PRINT_* and
: WWINT() do, they should work just the same.
No - the idea is to print the same value twice, once as a decimal, and
once as a hexadecimal. The reason being that lots of constants are
actually more "obvious" in hex form than in decimal form.
Cheers
Nick
More information about the Gcc-patches
mailing list