Re: OpenEuphoria on the raspberry pi
- Posted by Jerome Feb 13, 2013
- 2896 views
Yes, that's the error I would expect. The problem here is that the map algorithm uses 32-bit integers. On a 32-bit version of euphoria, that means you need to store it in an atom. However, on a 64-bit version of euphoria, you can use a normal euphoria integer (since those are 63-bit integers), and using an integer is faster than an atom. You can see that same error on an x86 build of euphoria if you use an integer there.
The real question is why it doesn't work on ARM when you have an atom.
Ahh, the danger in making changes without understanding them! So I cross-compile Euphoria for the Pi on my x86-64 system, which means I use 64bit Eu to do the initial translation. I think this explains why I did not get this error, and my compiled binaries do run on the Pi. But does this mean I avoided the bug or just created a more complex one that will crop up later? Also, what does Eu use the lookup routine for? It seems to be called a lot on startup on some of the demo programs.
I'll also try out the gdb debugging today.
Thanks,
Ira