LUA 64位过渡的问题 [英] lua 64-bit transitioning issue

查看:186
本文介绍了LUA 64位过渡的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的希望有一定的帮助,以获得关于这个问题的。有没有人使用过LUA在需要有32位和64位支持的应用程序?目前,我们正在过渡到64位,但有与客户端编译Lua脚本,使用64位版本,我们不能重新编译自己的麻烦。所以,实际上,我们需要能够加载使用32位的卢阿在64位应用程序编译字节code文件。当我们试图这样做,我们收到一条错误消息:

I really hope there is some help to get on this subject. Has anyone ever used lua in an application that needs to have both 32-bit and 64-bit support? We are currently transitioning to 64-bit but are having trouble with client compiled lua scripts that we can't recompile ourselves using the 64-bit version. So in effect we need to be able to load bytecode files compiled using 32-bit lua in a 64-bit application. When we try to do so we receive an error message:

虚拟机不匹配test.bin.lua:为size_t的大小为8,但读4

virtual machine mismatch in test.bin.lua: size of size_t is 8 but read 4

嗯,当然,这是一个明确的64位过渡的问题。硬的东西只是弄清楚如何对待它,而不重新编译的二进制文件的能力。

Well of course this is a clear 64bit transitioning problem. The hard thing is just to figure out what to do about it without the ability to recompile the binaries.

感谢

推荐答案

这不是很难适应lundump.c读取32位字节code文件。我已经发布了一个路线图,这在Lua的邮件列表。如果您有问题,请给我发电子邮件。

It's not hard to adapt lundump.c to read 32-bit bytecode files. I've posted a roadmap for this in the Lua mailing list. If you have problems, please send me email.

这篇关于LUA 64位过渡的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆