000001 Lecture Notes - Intermediate Representation, Machine Code, Carriage Return

6 views4 pages
20 Mar 2023
Department
Course
Professor

Document Summary

Instead of translating source code to machine code like c++, python code it translated to byte code: this byte code is a low-level set of instructions that can be executed by an interpreter. In most pcs, python interpreter is installed at /usr/local/bin/python3. 8. Instead of executing the instructions on cpu, byte code instructions are executed on a virtual machine: the python source code goes through the following to generate an executable code : Step 1: the python compiler reads a python source code or instruction. Then it verifies that the instruction is well-formatted, i. e. it checks the syntax of each line. If it encounters an error, it immediately halts the translation and shows an error message. Step 2: if there is no error, i. e. if the python instruction or source code is well-formatted then the compiler translates it into its equivalent form in an intermediate language called.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions