Question

Two different approaches to implementing a command interpreter are theself-contained and system-program approaches. In self-contained approach,...

Two different approaches to implementing a command interpreter are theself-contained and system-program approaches. In self-contained approach, implementation of the commands is included within the module. On the other hand, the system program approach invokes a system program for most commands. List advantages and disadvantages of each approach.

Homework Answers

Answer #1

Advantages and disadvantages of 2 approaches:

Self-Contained Approach System-Program Approach
  • In this, upon issuing the command, interpreter jumps to the appropriate section of the code, executes the command and returns the control back to the user.
  • In this, the interpreter loads the appropriate program into memory along with the appropriate arguments.   
  • Advantage is: Its Speed and Overall simplicity
  • Advantage is: New commands can be added without altering the command interpreter.
  • Disadvantage is: To add the new commands, we need to rewrite the interpreter program. This may get complicated, messy or too large after a number of modifications.
  • Disadvantage is: Speed will get reduced as it loads the entire program along with parameters into the memory.
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Implement the following problem as a self-contained Python program (module). Please write in beginner level code!...
Implement the following problem as a self-contained Python program (module). Please write in beginner level code! Thanks! The game of Pig is a simple two-player dice game in which the first player to reach 100 or more points wins. Players take turns. On each turn, a player rolls a six-sided die. After each roll: a) If the player rolls a 1 then the player gets no new points and it becomes the other player’s turn. b) If the player rolls...
Please do the following in python: Write a program (twitter_sort.py) that merges and sorts two twitter...
Please do the following in python: Write a program (twitter_sort.py) that merges and sorts two twitter feeds. At a high level, your program is going to perform the following: Read in two files containing twitter feeds. Merge the twitter feeds in reverse chronological order (most recent first). Write the merged feeds to an output file. Provide some basic summary information about the files. The names of the files will be passed in to your program via command line arguments. Use...
I did already posted this question before, I did get the answer but i am not...
I did already posted this question before, I did get the answer but i am not satisfied with the answer i did the code as a solution not the description as my solution, so i am reposting this question again. Please send me the code as my solution not the description In this project, build a simple Unix shell. The shell is the heart of the command-line interface, and thus is central to the Unix/C programming environment. Mastering use of...
In the reading this week, you have learned about the different approaches that organizations may use...
In the reading this week, you have learned about the different approaches that organizations may use in order to align management compensation with financial performance including the advantages and disadvantages of such compensation structures. In this assignment, you will compare and contrast two organizations that have management compensation plans tied to organizational performance. You will essentially compare and analyze one company that you believe has been successful using this approach and evaluate another company that you believe has failed or...
My orgnazation is UBER Uber is one of the biggest application based taxi services across the...
My orgnazation is UBER Uber is one of the biggest application based taxi services across the world. Who provide employment to thousands of the drivers across the globe and connect the network of the specific drivers in the most efficient way. Some of the main competitive advantage strategies of the Uber are as follows: Uber is an international brands and provides its services across the globe which directly make him a mostly influential service provider across the globe. Uber does...
A comprehensive employee appraisal is often made up of several different methods of performance evaluation. You...
A comprehensive employee appraisal is often made up of several different methods of performance evaluation. You can choose to use just one evaluation process when judging an employee's performance, but when you use multiple evaluation methods you are able to get a broader picture of the areas where the employee needs improvement and what recommendations you should make to support employee development. Self-Evaluation The self-evaluation is often effective when teamed up with a performance review. The employee is asked to...
Read the following case study: Best Hospital is a 325-bed suburban community hospital that has just...
Read the following case study: Best Hospital is a 325-bed suburban community hospital that has just merged with a local major academic medical center, the University of Excellence Medical Center (UEMC). There are 15 hospitals in the UEMC system, ranging from small rural hospitals with 50 or fewer beds to large multiple-specialty tertiary referral hospitals. Two hospitals in the system have achieved magnet status and several hospitals are working to achieve this status. Within the UEMC system, a high value...
CSC 322 Systems Programming Fall 2019 Lab Assignment L1: Cipher-machine Due: Monday, September 23 1 Goal...
CSC 322 Systems Programming Fall 2019 Lab Assignment L1: Cipher-machine Due: Monday, September 23 1 Goal In the first lab, we will develop a system program (called cipher-machine) which can encrypt or decrypt a code using C language. It must be an errorless program, in which user repeatedly executes pre-defined commands and quits when he or she wants to exit. For C beginners, this project will be a good initiator to learn a new programming language. Students who already know...
Read the following case study: Best Hospital is a 325-bed suburban community hospital that has just...
Read the following case study: Best Hospital is a 325-bed suburban community hospital that has just merged with a local major academic medical center, the University of Excellence Medical Center (UEMC). There are 15 hospitals in the UEMC system, ranging from small rural hospitals with 50 or fewer beds to large multiple-specialty tertiary referral hospitals. Two hospitals in the system have achieved magnet status and several hospitals are working to achieve this status. Within the UEMC system, a high value...
Which architectural pattern is most appropriate for the following multi-user, web-based system for providing a film...
Which architectural pattern is most appropriate for the following multi-user, web-based system for providing a film and photograph library?(1 Point) Please read textbook Chapter 6.3 Architectural Patterns MVC Pattern which separates presentation and interaction from the system data Layered architecture which organizes the system into layers, with related functionality associated with each layer Repository architecture - all data in a system is managed in a central repository that is accessible to all system components. Components do not interact directly, only...