Search code examples
assemblyluacompilationluac

how to get assembly code from .lua or from byte code?


i'd like to study assembly code from lua code. for the moment , i can get byte code with command :

luac filename.lua

I work on linux platform, how to compile it ? Should i compile it in order to study his assembly code ? how to disassemble it ?


Solution

  • Stock Lua does not compile the bytecode into assembly code, it has a bytecode execution engine, the Lua virtual machine. So