lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


hi all,
     I'm sorry that i weak at english.

1, I used Lua 5.2.3
2, My C/C++ compiler is VS2012
3, I compiled Lua compiler (luac.c) for win32 & x64. two luac.exe files, named luac-x86.exe & luac-x64.exe

4, I have a lua source file, named "a.lua" like this:
    local a = 1
    local s = "test string"

5, I typein command in cmd, like at:
    luac-x86  -o a-x86.luac a.lua
    luac-x64  -o a-x64.luac a.lua

6, a-x86.luac & a-x65.luac are Different!!!

7, I patch it, patch file is attachment.

8, I hope lua-team could merge it into trunk.

9, My solution is to modify the type of the string's length.
    It's from size_t to unsigned int.

10, But, Adverse effect is the string's length NOT ALLOW greater than 4G in x64

Attachment: lua-5.2.3-bytecode.patch
Description: Binary data