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

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

主站蜘蛛池模板: 宁远县| 双峰县| 高邮市| 荥经县| 石嘴山市| 滁州市| 名山县| 象山县| 神池县| 塘沽区| 临西县| 余庆县| 仁怀市| 本溪| 株洲县| 顺昌县| 吴桥县| 乡宁县| 贵南县| 慈溪市| 钦州市| 苗栗县| 县级市| 揭西县| 宽甸| 龙泉市| 德格县| 岑巩县| 西乌珠穆沁旗| 邯郸市| 迭部县| 高雄市| 河东区| 金昌市| 邻水| 建平县| 农安县| 双桥区| 松江区| 焦作市| 永和县|