Emulate the execution of programs from a small

Assignment Help C/C++ Programming
Reference no: EM132974784

The goal of this project is to emulate the execution of programs from a small, C-like programming language, on a stack-based machine with a write-back cache, and to report some metrics of the program's execution.

Successful completion of the project will enhance your understanding of some features of the C11 programming language, and develop your understanding of how simple programs can be executed on a general-purpose computer architecture.

Project requirements
• You are required to develop and test a program, named runcool, that emulates the execution of cool programs, by interpreting the contents of a coolexe file running on the stack-based machine employing a write-back cache policy, as described in this project description.
• Your program should produce a number of execution statistics, each printed one-per-line, and preceded by a '@'. For example:
• During the project marking, all lines other than those presenting the required statistics will be ignored. Any statistic not reported will be assumed to provide the value of zero (which will never be correct).
• Your program should, itself, should exit with the integer value left on the top-of-stack by the main() function of any cool program.
• Your project must be written in C11 in a single source-code file named runcool.c
This is the only file you should submit for marking.
Your submission will be compiled with the C compiler arguments -std=c11 -Wall -Werror, and marks will not be awarded if your submission does not compile.
• Your program, named runcool, should accept exactly one command-line argument providing the name of a coolexe file:
• You should start by reading, understanding, and then extending the starting code (please check the text document for that). DO NOT modify any of the provided constants near the top of the file (they will be used during marking). Please check the starting code text document where it provides a great head-start, but please make sure to modify and add many things to it (of course). But there are certain things that you must not change, so check the starting code text document to know what you can and can't do.
• You may use any functions from the standard C11 library but must not employ any 3rd-party code or libraries to complete your project. If in doubt, please ask.

Attachment:- Project requirements.rar

Reference no: EM132974784

Questions Cloud

Identify one issue within the concepts of health literacy : Identify one issue within the concepts of health literacy and cultural awareness. Also, explain the differences between health literacy and cultural awareness.
What gain and net reduction in retained earnings : Peer Corporation owned 10,000 shares of Hunter Corporation. What gain and net reduction in retained earnings respectively
What account should KL credit : The cost method is used to record treasury shares transactions. What account(s) should KL credit in 2019 to record the sale of 3,000 shares
How much is the amount of investment : The PV of an annuity of P1 for 10 years at 18% is 4.494. The annual depreciation is P5,000. The NPV is positive P1,119.25. How much is the amount of investment
Emulate the execution of programs from a small : Emulate the execution of programs from a small, C-like programming language, on a stack-based machine with a write-back cache, and to report some metrics
Prepare chan journal entries for the transactions : Chan Company estimates its bad debts as 1.00% of its annual credit sales of $908,000. Prepare Chan journal entries for the transactions
How much is charged in interest this month : Wilson opens a credit card with an APR of 27.65% compounded monthly. How much is charged in interest this month if his balance is $1,475
Explain the purpose of the census : Explain the purpose of the Census and why we are required to conduct a census in the USA. Why is a census accurate. Would sampling be better?
What is the difference between data mining and big data : Describe the client-server model. What are the main differences compared to a centralized model? What is the difference between data mining and big data?

Reviews

len2974784

8/26/2021 10:16:13 PM

The project "MUST" run correctly and it "MUST" have meaningful variable names and comments provided, the project MUST run correctly without having any errors. Note again, the starting code is already provided for you and many other things, so please just read VERY carefully the word document and you will understand everything, thanks.

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd