Re: Decimal to floating point and floating point to decimal conversion

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

 



Hello Jonathan,

I have attached the lex_number function snapshot. Is the majic happening
between line 15-20?

Regards,
-Amit

On Mon, Jul 10, 2023 at 5:12 PM Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
wrote:

> On Mon, 10 Jul 2023 at 11:28, Amit Hiremath via Gcc-help
> <gcc-help@xxxxxxxxxxx> wrote:
> >
> > Hi,
> >
> > Can you please point me to codes in GCC where numbers in human readable
> > format to floating point and floating point to human readable format
> > conversion are taking place? For example: 3.2444422
> -->404FA4F1-->3.2444422
> >
> > int main ()
> > {
> > float a;
> >
> > a= 3.2444422;
> >
> > return 0;
> >
> > }
> > when you generate asm code, the assembler code is converted to 404FA4F1.
> So
> > I am looking for a code in the gcc compiler.
>
> I think you want the lex_number function in libcpp/lex.cc
>

Attachment: lex.c
Description: Binary data


[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