Skip to content

Instantly share code, notes, and snippets.

@Tamoghna-Saha
Created November 6, 2018 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tamoghna-Saha/606f1c5dda9e3a2b48ea7a6c135901a1 to your computer and use it in GitHub Desktop.
Save Tamoghna-Saha/606f1c5dda9e3a2b48ea7a6c135901a1 to your computer and use it in GitHub Desktop.
Interpreter_VS_Compiler.ipynb
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {},
"cell_type": "markdown",
"source": "| Interpreter | Compiler |\n| :---: | :---: |\n| Executes program by taking **one statement** at a time | Translates the **entire program** at once into machine code |\n| **No intermediate object code** is generated, hence memory efficient | **Generates intermediate object code** which further requires linking, hence requires **more memory** |\n| Less amount of time to **analyze** the source code | More amount of time |\n| Overall **execution** is slower | Faster |\n| Easier to **debug** but less efficient | Difficult but more efficient |\n| Errors are reported after the **entire program is checked** | Error is reported as soon as the **first error is encountered** and will not show the next set of errors if the existing one isn't solved |"
}
],
"metadata": {
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
},
"language_info": {
"name": "python",
"version": "3.6.6",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"pygments_lexer": "ipython3",
"nbconvert_exporter": "python",
"file_extension": ".py"
},
"gist": {
"id": "",
"data": {
"description": "Interpreter_VS_Compiler.ipynb",
"public": true
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment