lua compiled into binary mode

When the user does not want to see the lua source code, text files can be luac, the lua text files "compiled" into a binary file.

lc@lc-virtual-machine:~/lua$ luac -o redis-white  redis-white.lua 
lc@lc-virtual-machine:~/lua$ cat redis-white
uaS�

xV(w@@redis-white.luaA@&�
localhost�
          redis_host
                    redis_port_ENV

Compiled files need lua parser can perform

@ Virtual-LC-LC Machine: ~ / Lua $ ./hello 
bash: ./hello: can not execute binary file: executable file format error 
LC LC-Virtual-Machine @: ~ / $ Lua Lua ./hello 
the Hello world

lua parser does not care if you pass it is a text or binary data, do not care what the extension Yes.

Translation copy is read queries, please wait ...... retry reading aloud copy copy copy via Google translate (domestic) translation

Guess you like

Origin www.cnblogs.com/LC161616/p/12046907.html