`
lua
  • 浏览: 74477 次
  • 性别: Icon_minigender_1
  • 来自: 大连
文章分类
社区版块
存档分类
最新评论

Lua runtime code reading Lua运行期源代码分析阅读

阅读更多

http://sunxiunan.com/?p=1477

 

 

image  

You could download the project for VC2008 in http://groups.google.com/group/lua5/web/lua_vc2008.rar

The project will use parameter like "c:\test.lua", and the lua script like above image.

The code starting point is pmain().

 

image

lua parser will parse the code file, and use LexState *ls to store the information.

image

image

After the binary code generating, opcodes will run in function luaV_execute().

image

image

for the code in standard library (c function), it will be called in function luaD_precall().

image

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics