RE: Real_cst printing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

-----Original Message-----
From: Ian Lance Taylor [mailto:ian@xxxxxxxx] 
Sent: Thursday, December 15, 2005 7:32 PM

<Primrose.Mbanefo@xxxxxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux