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
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?
|