Real_cst printing
Ian Lance Taylor
ian@airs.com
Thu Dec 15 18:32:00 GMT 2005
<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.
> 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++.
Ian
More information about the Gcc-help
mailing list