Clint,
Thanks.
I was probably having a flashback to SPITBOL/370 :)
... where reals like integers could be kept inside the variable descriptor. Of
course that meant really weird 7 byte reals. Sometimes the underlying semantics
are so similar they get blurred.
David
________________________________
From: Clinton Jeffery <[email protected]>
To: David Gamey <[email protected]>
Cc: [email protected]
Sent: Wed, October 13, 2010 11:13:04 AM
Subject: Re: [Unicon-group] very curious result with &allocated and real
expressions generating block region allocation
David,
Your 12 bytes for an allocated real on a 32-bit machine are comprised
as follows:
struct b_real { /* real block */
word title; /* T_Real */
double realval; /* value */
};
That's 8 bytes to hold the results of the arithmetic you performed,
and 4 bytes of type information.
On Wed, Oct 13, 2010 at 7:27 AM, David Gamey <[email protected]> wrote:
> Does anyone have a clue as to why evaluating a real number generates 12
> bytes!?
>
> The allocation is in the block region BTW and it makes no difference if the
> expression is all reals or involves type coercion.
>
> Windows Unicon binary dated April 2010 on Windows 7.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group