This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Real_cst printing
- From: <Primrose dot Mbanefo at Infineon dot com>
- To: <ian at airs dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 19 Dec 2005 14:34:53 +0100
- Subject: RE: Real_cst printing
-----Original Message-----
From: Ian Lance Taylor [mailto:ian@airs.com]
Sent: Thursday, December 15, 2005 7:32 PM
<Primrose.Mbanefo@Infineon.com> writes:
>> Where can I find documentation about the REAL_CST tree?
>> Mine says FIX_ME...
>Well, I suppose you can look in tree.def and tree.h.
>Basically a REAL_CST has a pointer to a struct real_value. The struct
is defined in real.h.
>> Actually I am trying to write the reals as they are given to the
>> target file.
>> 5.0 should appear as 5.0 in the target file. How can I do this?
>Call real_to_decimal.
Ok. I'm working on that. For some reason I can't find the
real_to_decimal function during linking.
>> To top it up, I would like to use the std::ostream and its operators.
>> Is there no macro to do something like :
>> os << GET_VALUE << endl; ?
>I'm not sure what you mean here. Obviously gcc is not written in C++.
I meant something like. Printf ("real number : %f",
A_MACRO_USED_TO_GET_PRINTABLE_REAL_VALUES(realNumber));
>Ian
Thanks,
Primrose