Compiler vs Interpreter Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 56 Likes Like Report Compiler and Interpreter are two different ways to translate a program from programming or scripting language to machine language. A compiler takes entire program and converts it into object code which is typically stored in a file. The object code is also referred as binary code and can be directly executed by the machine after linking. Examples of compiled programming languages are C and C++. An Interpreter directly executes instructions written in a programming or scripting language without previously converting them to an object code or machine code. Examples of interpreted languages are Perl, Python and Matlab. Following are some interesting facts about interpreters and compilers. 1) Both compilers and interpreters convert source code (text files) into tokens, both may generate a parse tree, and both may generate immediate instructions. The basic difference is that a compiler system, including a (built in or separate) linker, generates a stand alone machine code program, while an interpreter system instead performs the actions described by the high level program. 2) Once a program is compiled, its source code is not useful for running the code. For interpreted programs, the source code is needed to run the program every time. 3) In general, interpreted programs run slower than the compiled programs. 4) Java programs are first compiled to an intermediate form, then interpreted by the interpreter. References: http://en.wikipedia.org/wiki/Interpreter_%28computing%29 http://en.wikipedia.org/wiki/Compiler Create Quiz Comment K kartik Follow 56 Improve K kartik Follow 56 Improve Article Tags : Compiler Design school-programming CBSE - Class 11 Explore Compiler Design BasicsIntroduction of Compiler Design5 min readCompiler Construction Tools1 min readPhases of a Compiler8 min readSymbol Table in Compiler3 min readError Handling in Compiler Design3 min readLanguage Processors: Assembler, Compiler and Interpreter5 min readGenerations of Programming Languages3 min readLexical AnalysisIntroduction of Lexical Analysis4 min readFlex (Fast Lexical Analyzer Generator)5 min readIntroduction of Finite Automata3 min readClassification of Context Free Grammars4 min readAmbiguous Grammar7 min readSyntax Analysis & ParsersIntroduction to Syntax Analysis in Compiler Design5 min readFIRST and FOLLOW in Compiler Design6 min readParsing - Introduction to Parsers6 min readConstruction of LL(1) Parsing Table6 min readSyntax Directed Translation & Intermediate Code GenerationSyntax Directed Translation in Compiler Design8 min readS - Attributed and L - Attributed SDTs in Syntax Directed Translation4 min readParse Tree and Syntax Tree4 min readIntermediate Code Generation in Compiler Design6 min readIssues in the design of a code generator7 min readThree address code in Compiler6 min readData flow analysis in Compiler6 min readCode Optimization & Runtime EnvironmentsCode Optimization in Compiler Design9 min readIntroduction of Object Code in Compiler Design6 min readStatic and Dynamic Scoping6 min readRuntime Environments in Compiler Design8 min readLinker8 min readLoader in C/C++3 min readPractice QuestionsLast Minute Notes - Compiler Design13 min readCompiler Design - GATE CSE Previous Year Questions1 min read Like