官术网_书友最值得收藏!

Comparing source code to bytecode

Interpreted languages, such as Python, typically take raw source code and generate bytecode. Bytecode is encoded instructions that are on a lower level than source code but not quite as optimized as machine code, that is, assembly language.

Bytecode is often executed within the interpreter (which is a type of virtual machine), though it can also be compiled further into assembly language. Bytecode is used primarily to allow easy, cross-platform compatibility. Python, Java, Ruby, Perl, and similar languages, are examples of languages that use bytecode interpreters for different architectures while the source code stays the same.

While Python automatically compiles source code into bytecode, there are some options and features that can be used to modify how the interpreter works with bytecode. These options can improve the performance of Python programs, a key feature as interpreted languages are, by nature, slower than compiled languages

主站蜘蛛池模板: 偏关县| 嵊州市| 亳州市| 安仁县| 尚志市| 焉耆| 万盛区| 双城市| 黑水县| 鄂州市| 收藏| 余庆县| 云浮市| 峨眉山市| 哈巴河县| 濉溪县| 措勤县| 虎林市| 长沙县| 中阳县| 益阳市| 清徐县| 阜阳市| 兴仁县| 涞水县| 神农架林区| 双城市| 布尔津县| 合阳县| 柳江县| 栾川县| 剑河县| 读书| 疏勒县| 丹江口市| 新巴尔虎右旗| 江华| 奉新县| 延吉市| 江口县| 临安市|