Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Class Exercise 1: CHAT SERVER Draw a component diagram of the below chat server application Chat server is a standalone application that is made up

Class Exercise 1: CHAT SERVER Draw a component diagram of the below chat server application Chat server is a standalone application that is made up the combination of two applications namely, Server application which runs on server side and Client application which runs on client side. This application is used for exchanging information in the form of messages. The network for the chat application could be easily setup on LAN. To initiate a network, the administrator should first start the Server application. User login through the Client application as soon as the Server validates them. The clients thus join the chat room and can now start communicating between each other by sending messages via the Server. A client when logouts leaves the chat room. When all the clients leave the chat room, the administrator may stop the Server application thus closing the network.

Class Exercise 2: New Programming Language Draw a component diagram of the below application and identify its all possible connectors Suppose we have designed a new programming language called EyeJay. Our task is to develop a compiler that receives a program and generates machine instructions for a specific processor. The compilation process consists of different steps. Flexible error handling in these steps is of utmost importance; we aim to have error handling strategies that are specific to different stages of the compilation process. To this end, we have decided to split the compilation process into three stages: front end, middle end, and back end. The front end reads the source file, parses it, and converts it into an abstract syntax tree. The front end performs semantic analysis on the constructed abstract tree, augments it with additional information and passes the augmented tree to the middle end. The purpose of the middle end is to generate code in an intermediate language and to perform optimization on the generated code. The optimization phase consists of different steps. The architecture should offer design flexibility in the optimization phase such that we can add, remove, or reorder the optimization steps in different releases of the compiler. The back end receives the optimized code in the intermediate language and translates it to machine instructions for a specific processor.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

Evaluating Group Performance?

Answered: 1 week ago