[squeak-dev] 2 raisedTo: 63 on Pi returns 0 ? (was Re: how to determine available RAM?)

Bruce O'Neel bruce.oneel at pckswarms.ch
Fri May 7 10:21:02 UTC 2021

You're right.  I have the following with top to bottom:  
Pi 3, Rasp PI OS based on Debian Stretch 9.0, Squeak 6.0alpha 20509, VM Cog[spur] built from 20210109.  
Pi 400, Rasp PI OS based on Debian Buster 10.0,  Squeak 6.0alpha 20509, VM Cog[spur] built from 202109  
x86-64 Linux, Mint 20.1 (ubuntu 20.4), Squeak 6.0alpha 20509, VM Cog[spur] built form 20210109.  
Windows x86-64, Win 10, Squeak 6.0alpha 20509, VMCog[spur] built from 20200302.  I think that's the release VM for windows.  
and finally a broken one.  
Armv8, Debian 18.4 (I think), Squeak6.0alpha 20509, but VM built 20210324.  I'll move back to the older VM and try again.  
![image.png](cid:77bd605bd683a2a8f17da2db9b54cf3850d9b9d5 at infomaniak "image.png")  

> I was just about to say something about Chris'question and tried  
>  2 raisedTo: 63  
>  in a Workspace. I was a little surprised to see '0' returned.  
>  On my Mac 64 I get the right answer. On the Pi I get the right(ish) answer if I substitute 2.0. To make things weirder if I debug, the end value of 'result' in Number>>#raisedToInteger: is correct. The value of 'stack top' in its sender #raisedTo: is the same correct value.  
>  Gronk? It's clearly not a problem with printing the value since I see the correct value. If I try  
>  (2 raisedTo: 63) / 64.0  
>  to check what number is actually there... I get 0. Implying there is really 0. Debug it and.. yup 0. What? It looks like somewhere the LPI instance is getting mishandled but where?  
>  tim  
>  --  
>  tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim  
>  Strange OpCodes: CSD: Charge Surreptitiously to DOE

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210507/d833db41/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 144838 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210507/d833db41/attachment-0001.png>

More information about the Squeak-dev mailing list