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

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

主站蜘蛛池模板: 平江县| 卢湾区| 晋中市| 柯坪县| 大连市| 苍山县| 襄樊市| 罗定市| 堆龙德庆县| 资阳市| 博乐市| 七台河市| 福鼎市| 台前县| 长丰县| 盘山县| 若羌县| 丹寨县| 桂东县| 南昌市| 固镇县| 沁源县| 梨树县| 库车县| 安岳县| 登封市| 图们市| 余姚市| 阳原县| 西乡县| 德令哈市| 建湖县| 博客| 横山县| 滨州市| 泾源县| 莱州市| 察哈| 八宿县| 来凤县| 博客|