lua-users home
lua-l archive

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


Hi,

I have a two bitecodes what was made with two different lua copilers can you explain me difference beetwen those two bitecodes? I see swaped few bytes in second line. Can you explain me why? What are that bytes? I use luac version 5.3.4.

file name: main.lua
mime type: 

0000-0010:  1b 4c 75 61-53 00 19 93-0d 0a 1a 0a-04 04 04 04  .LuaS... ........
0000-0020:  08 78 56 00-00 00 00 00-00 00 28 77-40 01 00 00  .xV..... ..(w@...
0000-0030:  00 00 00 00-00 00 00 00-01 02 02 00-00 00 08 40  ........ .......@
0000-0040:  40 80 26 00-80 00 02 00-00 00 04 09-50 4c 4f 5f  @.&..... ....PLO_
0000-0050:  54 4f 4f 4c-13 01 00 00-00 01 00 00-00 01 00 00  TOOL.... ........
0000-005f:  00 00 00 00-00 00 00 00-00 00 00 00-00 00 00     ........ .......

file name: main.lua_out
mime type: 

0000-0010:  1b 4c 75 61-53 00 19 93-0d 0a 1a 0a-04 04 04 04  .LuaS... ........
0000-0020:  08 78 56 00-00 00 28 77-40 00 00 00-00 01 00 00  .xV...(w @.......
0000-0030:  00 00 00 00-00 00 00 00-01 02 02 00-00 00 08 40  ........ .......@
0000-0040:  40 80 26 00-80 00 02 00-00 00 04 09-50 4c 4f 5f  @.&..... ....PLO_
0000-0050:  54 4f 4f 4c-13 01 00 00-00 01 00 00-00 01 00 00  TOOL.... ........
0000-005f:  00 00 00 00-00 00 00 00-00 00 00 00-00 00 00     ........ .......

content of not compiled file is:
PLO_TOOL=1

Thank you,
Michal