欢迎来到天天文库
浏览记录
ID:37751195
大小:800.78 KB
页数:90页
时间:2019-05-30
《Lua 5.1 虚拟机指令简明手册》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、ANo-FrillsIntroductiontoLua5.1VMInstructionsLua5.1虚拟机指令简明手册作者Kein-HongMan,esq.版本0.1,20060313Contents目录1Introduction序言22LuaInstructionBasicsLua指令基础33ReallySimpleChunks十分简单的程序块54LuaBinaryChunksLua二进制程序快75InstructionNotation指令记法156LoadingConstants加载常量16
2、7UpvaluesandGlobalsUpvalue和全局变量208TableInstructions表指令229ArithmeticandStringInstructions算术和字符串指令2310JumpsandCalls跳转和调用2811RelationalandLogicInstructions关系和逻辑指令3512LoopInstructions循环指令4213TableCreation表创建4814ClosuresandClosing创建和结束闭包5215ComparingLua5.0.2andLua5.1比较Lua5.0.
3、2和Lua5.15616DiggingDeeper深入探究5717Acknowledgements致谢5718ChangeLog&ToDos变更纪录&待做的57“ANo-FrillsIntroductiontoLua5.1VMInstructions”islicensedundertheCreativeCommonsAttribution-NonCommercial-ShareAlikeLicense2.0.Youarefreetocopy,distributeanddisplaythework,andmakederivativewor
4、ksaslongasyougivetheoriginalauthorcredit,youdonotusethisworkforcommercialpurposes,andifyoualter,transform,orbuilduponthiswork,youdistributetheresultingworkonlyunderalicenseidenticalto-1-thisone.SeethefollowingURLsformoreinformation:“Lua5.1虚拟机指令简明手册”遵循CreativeCommonsAttri
5、bution-NonCommercial-ShareAlike许可2.0。只要你给出原作者署名,不把本作品用作商业目的,即可自由拷贝、分发和展示本作品,以及制作衍生品,并且如果你修改、改变或拓展本作品,你只能遵循该同样的许可发布衍生品。更多信息见下面的URL:http://creativecommons.org/licenses/by-nc-sa/2.0/http://creativecommons.org/licenses/by-nc-sa/2.0/legalcode-2-1Introduction序言Thisisano-frills
6、introductiontotheinstructionsetoftheLua5.1virtualmachine.ComparedtoPerlorPython,thecompactnessofLuamakesitrelativelyeasierforsomeonetopeekunderthehoodandunderstanditsinternals.Ithinkthatonecannotcompletelygrokascriptinglanguage,oranycomplexsystemforthatmatter,withoutslit
7、tingtheanimalopenandexaminingtheentrails,organsandotheryuckystuffthatisn’tnormallyseen.Sothisdocumentissupposedtohelpwiththe“peekunderthehood”bit.这是Lua5.1虚拟机指令集的简明介绍。与Perl或Python相比,Lua相当简洁,人们可以深入内部一探究竟。对于脚本语言或任何复杂系统,如不能了解其内部机制算不上真正掌握了。希望本文对该目的有些微帮助。Thisintroductoryguidec
8、oversLua5.1only.PleaseseetheolderdocumentfortheguidetoLua5.0.2virtualmachineinstructions.Thisisintentio
此文档下载收益归作者所有