简体   繁体   English

Lua 5.1汇编程序是否存在?

[英]Does a Lua 5.1 Assembler Exist?

I've been studying the Lua 5.1 VM opcodes for some time now, out of boredom. 出于无聊,我一直在研究Lua 5.1 VM操作码已有一段时间了。

And I want to try coding something! 我想尝试编写一些东西!

So is there any existing way to assemble Lua Assembly into Bytecode ? 那么有没有现成的方法将Lua Assembly组装成字节码?

I never used it, but I've found this link in my "Things to watch when I have more time" list (oddly I never get to the part of consuming this list...) 我从来没有使用它,但我在“我有更多时间的事情”列表中找到了这个链接(奇怪的是我从来没有达到过消费这个列表的部分......)

http://chunkbake.luaforge.net/ http://chunkbake.luaforge.net/

It claims to assemble Lua 5.0 VM Code into bytecodes, not 5.1, and unfortunately I don't know how much has changed from 5.0 to 5.1. 它声称将Lua 5.0 VM Code组装成字节码而不是5.1,不幸的是我不知道从5.0改为5.1。

I never used it either, but ChunkSpy is a Lua 5.1 disassembler , and on that site there is also a file explaining both the 5.0 and 5.1 opcodeset. 我从来没有使用它,但ChunkSpy是一个Lua 5.1 反汇编程序 ,在该网站上还有一个文件解释了5.0和5.1操作码集。 So maybe, starting on that code, you start writing an assembler yourself? 那么也许,从该代码开始,您自己开始编写汇编程序?

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

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