{"id":2417,"date":"2018-06-22T01:44:26","date_gmt":"2018-06-22T01:44:26","guid":{"rendered":"https:\/\/askanacademic.com\/uncategorized\/the-difference-between-interpreters-and-compilers-944\/"},"modified":"2019-09-20T14:32:05","modified_gmt":"2019-09-20T14:32:05","slug":"the-difference-between-interpreters-and-compilers-944","status":"publish","type":"post","link":"https:\/\/askanacademic.com\/computing-and-ict\/the-difference-between-interpreters-and-compilers-944\/","title":{"rendered":"The Difference Between Interpreters and Compilers"},"content":{"rendered":"
distinguish between interpreter and compiler?<\/p>\n
Both interpreters and compilers are used to translate source code into object code. Although they both achieve the same end objective, the method in which they do so is substantially different.<\/p>\n
\u2022 Input a single instruction at a time.<\/p>\n \u2022 No intermediate representation (code that provides a programmer with ability to optimise the code based on the target machine).<\/p>\n \u2022 Control statements (\u2018If\u2019 statements) are slow to execute.<\/p>\n \u2022 Errors are displayed for every interpreted instruction making them both easy to notice but slow to produce.<\/p>\n \u2022 Interpreters require less memory to function as no intermediate code is created.<\/p>\n Compilers<\/strong><\/p>\n \u2022 Input the entire set of instructions at once.<\/p>\n \u2022 Provide intermediate representation.<\/p>\n \u2022 Control statements are faster to execute.<\/p>\n \u2022 Errors are not produced after each instruction meaning that the compiling is fast, but mistakes are often difficult to notice.<\/p>\n \u2022 Compilers require more memory as they create intermediate code.<\/p>\n Conclusion<\/strong><\/p>\n Essentially the main difference between the two is their level of approachability and in the case of varied target machine architecture, their practicability. For novices, interpreters may be slower but they provide an easier method for detecting errors in source code and aid in producing an error free object code. Compilers on the other hand for experienced users provide a much quicker method of producing object code, however they do not provide the same degree of problem recognition. The addition of intermediate code produced by compilers also allows a programmer to tailor their code to particular target machines, often making compilers more practical.<\/p>\n Question distinguish between interpreter and compiler? Answer Both interpreters and compilers are used to translate source code into object code. Although they both achieve the same end objective, the method in which they do so is substantially different. Interpreters \u2022 Input a single instruction at a time. \u2022 No intermediate representation (code that provides a …<\/p>\n","protected":false},"author":1,"featured_media":1932,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"yoast_head":"\n
\nInterpreters<\/strong><\/p>\nReferences<\/h2>\n","protected":false},"excerpt":{"rendered":"