Re: Nokia n900 and Euphoria
- Posted by Jerome May 14, 2011
- 5821 views
I think we have been here before. Someone says they want to port to ARM and probably and thanks to it being at least nearly all ANSI C, I'll bet they do, but the changes if any never find there way back to the repository. Unfortunate. As this problem probably has already been solved.
How long did it take you to get it working on your phone?
It took me a week of working on and off to get a working interpreter on my phone. Some of that time was devoted to Scratchbox and phone specefic issues though as well. The biggest challenge I ran into was that some Euphoria programs would run fine in my Scratchbox environment but crash on my phone. For example, directly or indirectly including std/text.e in a program on my phone would crash with "Internal Error". There didn't seem to be any other error information, so debugging became a guessing game for me. I'm not sure if this is ARM specific or specific to my operating system on the phone. In any case, I would be happy to submit my changes.
The first step is to get the output from something like objdump. Then we need to figure out how to change the euphoria backend.
I changed the CALLBACK_SIZE macro to 126 (my guess based on objdump) per Shawn's suggestion and I no longer get the missing magic error. It does seem though that callback routines don't actually run though, so editing the backend seems necessary. I'm happy to give it a try if you can point me in the right direction. I've posted the objdump results for be_runtime.o in a Pastey here: http://openeuphoria.org/pastey/67.wc
Thanks,
Ira