初探 Python 底層運作 VM虛擬機器 與 Byte Code

動機:對於 python 的底層運作想要淺探?!

準備環境
1.Windows/MacBook筆電
2.python 2/3(需先安裝)

實作步驟
1.依據 參攷 1. 網頁提供Python直譯語言流程::Parser->AST->CFG->ByteCode->Output 並可透過 Python 的 dis 模組,來解析 ByteCode...

2.依 參攷 3. 網頁提供之方法,可直接實作並查看 ByteCode...


參攷
1.Python 底層運作 01 – 虛擬機器與 Byte Code, https://blog.louie.lu/2017/04/11/python-%E5%BA%95%E5%B1%A4%E9%81%8B%E4%BD%9C-01-%E8%99%9B%E6%93%AC%E6%A9%9F%E5%99%A8%E8%88%87-byte-code/
2.Python 底層運作 02 – PyTokenizer_Get 分析, https://blog.louie.lu/2017/04/14/python-%E5%BA%95%E5%B1%A4%E9%81%8B%E4%BD%9C-02-pytokenizer_get-%E5%88%86%E6%9E%90/
3.Disassembling Python Bytecode, http://www.goldsborough.me/python/low-level/2016/10/04/00-31-30-disassembling_python_bytecode/

留言