简体   繁体   English

如何从 .lua 或字节码获取汇编代码?

[英]how to get assembly code from .lua or from byte code?

i'd like to study assembly code from lua code.我想从 lua 代码研究汇编代码。 for the moment , i can get byte code with command :目前,我可以使用命令获取字节码:

luac filename.lua

I work on linux platform, how to compile it ?我在linux平台上工作,如何编译它? Should i compile it in order to study his assembly code ?我应该编译它以研究他的汇编代码吗? how to disassemble it ?如何拆卸它?

Stock Lua does not compile the bytecode into assembly code, it has a bytecode execution engine, the Lua virtual machine. Stock Lua 不会将字节码编译成汇编代码,它有一个字节码执行引擎,Lua 虚拟机。 So所以

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM