This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]