c - 操作码(Lua 字节码)后面的数字是什么意思?
问题描述
LOADK
,SETGLOBAL
CALL
等后面的数字是什么意思?
E:\Project\ZhScheme\lua>luac -l luac.out 主要(6 条指令,24 字节在 004784F8) 0+ 参数、2 个插槽、0 个上值、0 个局部变量、4 个常量、0 个函数 1 [1] 加载K 0 -2 ; 18 2 [1] 设置全局 0 -1 ; 一个 3 [2] 获取全球 0 -3 ; 打印 4 [2] 加载K 1 -4 ; “你好世界” 5 [2] 呼叫 0 2 1 6 [2] 返回 0 1
https://the-ravi-programming-language.readthedocs.io/en/latest/lua_bytecode_reference.html
http://files.catwell.info/misc/mirror/lua-5.2-bytecode-vm-dirk-laurie/lua52vm.html
这些数字似乎指向18
和"hello world"
,但是这些常量存储在哪里?
解决方案
推荐阅读
- python - Python IRC 和 LinkNet 端口问题
- scikit-learn - 交叉验证后如何获取数据?
- intellij-idea - Intellij & Solr8:如何设置项目?
- c++ - 在 android studio 项目中修复原生 C++ 代码中的奇怪链接器错误
- html - 我该如何解决 AttributeError: 'NoneType' object has no attribute 'text' 这个问题?
- java - 无法在 Intellij IDE Ultimate 2020.3 中创建 Spring 多模块项目
- python - 在excel中保存为csv时如何避免tweet id被截断
- amazon-web-services - 如何使 CodePipeline 与 Git、ECR、CodeBuild 和 CodeDeploy 一起工作?
- apache - AEM 6.3:将选择器中的点替换为斜线时出现错误请求
- javascript - 如何有效地查找范围包含的数组中的所有元素?