Pearson eText for Concepts of Programming Languages -- Instant Access (Pearson+)
12th Edition
ISBN: 9780135102268
Author: Robert Sebesta
Publisher: PEARSON+
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 1, Problem 25RQ
Explanation of Solution
Three general methods of implementing a
The Three methods are:
- Compiler Implementation.
- Just In Time (JIT) or Interpreted Implementation.
- The combination of both compiled and interpreted implementation.
Compiled languages are usually faster during execution.
- Firstly, the program is passed to lexical analyzer which gathers different lexemes like keywords, punctuations and others of the code.
- This information is then passed to syntactic analyzer which makes parse tees out of this information.
- Further, the code is then converted to an intermediate language and the semantic errors and rectified in this stage.
- Finally, the code in this intermediate language is then converted to machine code which can be run by the system...
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Which produces faster program execution, a compiler or a pure interpreter?
What are the primary distinctions between a compiler and an interpreter?
Comparing a compiler and an interpreter, what is the difference?
Chapter 1 Solutions
Pearson eText for Concepts of Programming Languages -- Instant Access (Pearson+)
Ch. 1 - Why is it useful for a programmer to have some...Ch. 1 - Prob. 2RQCh. 1 - Prob. 3RQCh. 1 - Prob. 4RQCh. 1 - Prob. 5RQCh. 1 - In what language is most of UNIX written?Ch. 1 - What is the disadvantage of having too many...Ch. 1 - How can user-defined operator overloading harm the...Ch. 1 - Prob. 9RQCh. 1 - Prob. 10RQ
Ch. 1 - Describe some design trade-offs between efficiency...Ch. 1 - Prob. 12RQCh. 1 - Prob. 13RQCh. 1 - Prob. 14RQCh. 1 - Prob. 15RQCh. 1 - Prob. 16RQCh. 1 - Prob. 17RQCh. 1 - Prob. 18RQCh. 1 - Prob. 19RQCh. 1 - Prob. 20RQCh. 1 - Prob. 21RQCh. 1 - Prob. 22RQCh. 1 - Prob. 23RQCh. 1 - Prob. 24RQCh. 1 - Prob. 25RQCh. 1 - What role does the symbol table play in a...Ch. 1 - Prob. 27RQCh. 1 - Prob. 28RQCh. 1 - What are the advantages in implementing a language...Ch. 1 - Prob. 1PSCh. 1 - What are some features of specific programming...Ch. 1 - Prob. 3PSCh. 1 - Prob. 4PSCh. 1 - Prob. 5PSCh. 1 - What common programming language statement, in...Ch. 1 - Java uses a right brace to mark the end of all...Ch. 1 - Prob. 8PSCh. 1 - Explain the different aspects of the cost of a...Ch. 1 - Prob. 10PSCh. 1 - Describe some design trade-offs between efficiency...Ch. 1 - Prob. 12PSCh. 1 - Prob. 13PSCh. 1 - Prob. 14PSCh. 1 - How do type declaration statements for simple...Ch. 1 - Write an evaluation of some programming language...Ch. 1 - Prob. 17PSCh. 1 - Many contemporary languages allow two kinds of...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Most programs are written in a(n) __________, such as FORTRAN or Java, which is then translated into equivalent CPU instructions.arrow_forwardThe difference between an interpreter and a compiler should be discussed.arrow_forwardThere has to be some discussion on what makes an interpreter distinct from a compiler.arrow_forward
- Why is it preferable to use a language that is compiled as opposed to one that is interpreted, and what are those advantages? In what sorts of situations do you feel most at ease using the services of an interpreter, and why is that?arrow_forwardIn what proportion of cases does a good compiler produce code that is superior to that written by an assembly language programmer on modern machines? So what if we try?arrow_forwardWhat factors must be taken into account in order to create a compiler that is both efficient and accurate? Explain.arrow_forward
- What must a compiler have in order to make code that is correct and works well? Explain?arrow_forwardWhat is the difference between a compiler and an interpreter in programming languages, and how does each approach to language execution impact performance and portability?arrow_forwardThere are certain advantages to using a compiled language versus an interpreted one. In what situations would you rather work with a human interpreter than a machine translator?arrow_forward
- Can you explain why compiled languages are preferable than interpreted ones? When would you find it most useful to have an interpreter present?arrow_forwardWhich phase during a compilation is completely optional and will not affect the output of the target code but only the efficiency of the target code. What is the least number of passes required to build a compiler with all its phases? What is the advantage of building a compiler with less passes? What is the advantage of building a compiler with more passes?arrow_forwardTo what extent can a good compiler on modern processors produce code that is superior to that produced by an assembly language programmer? So what if we try?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Enhanced Discovering Computers 2017 (Shelly Cashm...Computer ScienceISBN:9781305657458Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. CampbellPublisher:Cengage LearningSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm...
Computer Science
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning