-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to PPC64 #191
Port to PPC64 #191
Conversation
It's correctly used on turbo/cdef.lua
LuaJIT is being ported to PPC64 and turbolua is being tested to support it. The define __PPC64__ is defined based on GCC flags on a POWER8 system: $ uname -m ppc64le $ gcc -E -dM - < /dev/null | grep PPC #define _ARCH_PPCGR 1 #define __PPC64__ 1 #define _ARCH_PPCSQ 1 #define _ARCH_PPC 1 #define __PPC__ 1 #define _ARCH_PPC64 1
And as PPC64 is __ABI64__, I had to change the condition to force usage of __ABI32__ on PPC64 case.
Tests are done pretty simple with make test. Make sure that you have busted installed... |
it took a while (20 minutes) and it didn't finish as expected: Any comments on this? Might be something else that I failed on porting... |
got it... it's the spec/iostream_spec.lua that is blocking. I'll check it closely and come back with news... |
Probably is the big read and writes. They can take a while but should ons. 10. jun. 2015 kl. 13.44 skrev Gustavo Serra Scalet <
|
well, after reducing the number of "bytes:append_luastr_right" calls it worked: Thanks |
Good :) |
I just updated Turbolua to be able to run also on POWER architecture 64 bits.
Our team is still finishing the LuaJIT port to PPC64 so it's not on the official repository yet. Take a look at our Wiki hosted on GitHub for the latest status and for our code, if you want to check:
https://github.com/LuaJIT-PPC64/LuaJIT-PPC64/tree/ppc64-port
That LuaJIT is already functional and on Turbolua I was able to run some examples like the chatapp. If you have more tests that we can run on our PPC64 machine in order to find possible bugs, give us a hint please.