luajit筆記---編譯bytecode(字節碼文件)

雖說這種東西其實沒多少用,不過老闆是燒餅所以不會承認的,不過編譯之後別人反編譯也看不到變量命這種自欺欺人的心理作用還是有點用的。於是發現lua5.1編譯出來的字節碼luajit是不能用的,後來去官網看到編譯方法,輸入後卻說沒有這個命令,臥槽。於是繼續google,找到了一個跟我一樣的傢伙,後面有人給出解決方案了


In the LuaJIT source distribution, there is a folder called 'libs'
which contain necessary Lua files. Rename this as 'jit'.

Make a folder in the same directory as luajit.exe and call it 'lua';
copy the 'jit' folder into 'lua'.

The 'lua' folder will be where LuaJIT will initially look for Lua
packages;  now it contains the jit package and 'luajit -b' will work
and show you how to compile files to bytecode.


來自http://lua-users.org/lists/lua-l/2011-06/msg01241.html


我就不翻譯了,不懂的自學英語去,總之能用就是了

發佈了61 篇原創文章 · 獲贊 5 · 訪問量 37萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章