Lua source code Recommended reading order by mikemike
来源:互联网 发布:若尔盖网店美工招聘 编辑:程序博客网 时间:2024/05/16 14:39
Online Lua 5.1 source code browser
Recommended reading order:
- lmathlib.c, lstrlib.c: get familiar with the external C API. Don't bother with the pattern matcher though. Just the easy functions.
- lapi.c: Check how the API is implemented internally. Only skim this to get a feeling for the code. Cross-reference to lua.h and luaconf.h as needed.
- lobject.h: tagged values and object representation. skim through this first. you'll want to keep a window with this file open all the time.
- lstate.h: state objects. ditto.
- lopcodes.h: bytecode instruction format and opcode definitions. easy.
- lvm.c: scroll down to luaV_execute, the main interpreter loop. see how all of the instructions are implemented. skip the details for now. reread later.
- ldo.c: calls, stacks, exceptions, coroutines. tough read.
- lstring.c: string interning. cute, huh?
- ltable.c: hash tables and arrays. tricky code.
- ltm.c: metamethod handling, reread all of lvm.c now.
- You may want to reread lapi.c now.
- ldebug.c: surprise waiting for you. abstract interpretation is used to find object names for tracebacks. does bytecode verification, too.
- lparser.c, lcode.c: recursive descent parser, targetting a register-based VM. start from chunk() and work your way through. read the expression parser and the code generator parts last.
- lgc.c: incremental garbage collector. take your time.
- Read all the other files as you see references to them. Don't let your stack get too deep though.
If you're done before X-Mas and understood all of it, you're good. The information density of the code is rather high.
0 0
- Lua source code Recommended reading order by mikemike
- cJSON source code reading
- Lua code reading
- BeansDB Source Code Reading (1)
- BeansDB Source Code Reading (2)
- Maxent Source code reading experience
- CRF++ Source code reading experience
- Lua source code 下载
- ++ Recommended Reading List
- Rated R: Recommended Reading
- Code reading: the open source perspective
- 2011 4-12 boost source code reading -
- Bluedroid From A2DP|source code reading note
- Scikit Source Code Reading(2015.05.29)
- Scikit Source Code Reading(2015.05.31)
- InfoQ Editors' Recommended Reading List
- Code Reading: The Open Source Perspective 各章精要
- Code Reading: The Open Source Perspective 各章精要2
- 计算机网络寻址的过程
- 理过程
- IPtables 实例
- 将16:9的横屏PPT转换为4:3普通模式
- Android View类中getScrollX()的说明
- Lua source code Recommended reading order by mikemike
- 程序员编程艺术(微软面试三十七题)
- git push后修改错误的commit message
- 市场经济到底要不要讲道德?应该讲什么道德?(课程论文)
- NFS
- oracle10g C++ MFC开发学生管理信息系统(基于对话框、VC6.0环境)
- Java 服务器端支持断点续传的源代码【支持快车、迅雷】
- MFC OnCtlColor()用法、MFC对话框设置透明
- 适配iOS7开发(全面)