Real_cst printing
Ian Lance Taylor
ian@airs.com
Mon Dec 19 18:02:00 GMT 2005
<Primrose.Mbanefo@Infineon.com> writes:
> Ok. I'm working on that. For some reason I can't find the
> real_to_decimal function during linking.
I don't know how you are doing the link, but real_to_decimal is
defined in gcc/real.c.
> I meant something like. Printf ("real number : %f",
> A_MACRO_USED_TO_GET_PRINTABLE_REAL_VALUES(realNumber));
>From print_rtx in gcc/print-rtl.c:
char s[60];
real_to_decimal (s, CONST_DOUBLE_REAL_VALUE (in_rtx),
sizeof (s), 0, 1);
fprintf (outfile, " %s", s);
Ian
More information about the Gcc-help
mailing list