[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Mysterious tcc behavior: why does 0.0 takes 12 bytes
From: |
Dave Dodge |
Subject: |
Re: [Tinycc-devel] Mysterious tcc behavior: why does 0.0 takes 12 bytes when NOT long double? |
Date: |
Fri, 27 May 2005 00:41:23 -0400 |
User-agent: |
Mutt/1.4.2i |
On Fri, May 27, 2005 at 12:32:04AM -0400, Dave Dodge wrote:
> DEBUG: type of 0.0 is DOUBLE
> DEBUG: Constant float in gv(), size=12, align=4, offset=4,type=0xa
> DEBUG: wrote ptr[0]=0x0
> DEBUG: wrote ptr[1]=0x0
> DEBUG: wrote ptr[2]=0x0
>
> It wrote 24 zero bytes, but when it uses the FPU to copy them into
Whoops, make that 12 zero bytes.
> the union the last two bytes of the copy are junk:
>
> $ ./a.out
> 0 0 40130000
> ^^^^
-Dave Dodge