Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Programming Test cases : One way to generate valid binary inputs is to use this online tool: https://www.eg.bucknell.edu/~csci320/mips_web/ (If anything needed let me know)

C Programming

Test cases: One way to generate valid binary inputs is to use this online tool: https://www.eg.bucknell.edu/~csci320/mips_web/

(If anything needed let me know)

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

In this project you will complete two utility functions that will be useful for processing the input for a disassembler (in phase 2). You will also complete a test driver to test your two functions. (Atest driver is a main function written to "drive" tests of other functions.) Get started The goal of the project is to gain more familiarity with C by writing some useful functions for a future programming project. Get the code ping the following command on fourier rhome/rwang67/publi ect Files description: disUtilDriver.c verifyMIPSinstruction.c binToDec.c Makefile Test driver, with main function Utility function 1, used to verify the input format Utility function 2,convert input bin to dec indicates how to compile both this program and the future disassembler program A simple input test file A header file testfileStarter.txt same.h processarguments.c/.h processes command-line arguments passed to the main function; used in test driver A header file for the following two print functions Prints Prints error messages, used in ver Will be used in phase 2 Will be used in phase 2 rintFuncs.h rintDe messages, used in test driver rintError.c IPSInstruction Disassembler.h tRegName.c The Makefile contains infor mation for the make command, telling it how to compile this program (and the future disassembler program). Check the contents of Makefile to understand its structure. To compile this program, type make disUtil at a command-line prompt. The make command will create a compiled executable called disUtil. You can run your program by typing its name at the command line. It takes two optional parameters: a filename and an integer 1 if you want to turn on debugging. If you run the program with the minimalist starter test file provided above, you'll see that for now it just prints the contents of the test file with a line number inserted at the beginning of each line isUtil testfileStarter.txt In this project you will complete two utility functions that will be useful for processing the input for a disassembler (in phase 2). You will also complete a test driver to test your two functions. (Atest driver is a main function written to "drive" tests of other functions.) Get started The goal of the project is to gain more familiarity with C by writing some useful functions for a future programming project. Get the code ping the following command on fourier rhome/rwang67/publi ect Files description: disUtilDriver.c verifyMIPSinstruction.c binToDec.c Makefile Test driver, with main function Utility function 1, used to verify the input format Utility function 2,convert input bin to dec indicates how to compile both this program and the future disassembler program A simple input test file A header file testfileStarter.txt same.h processarguments.c/.h processes command-line arguments passed to the main function; used in test driver A header file for the following two print functions Prints Prints error messages, used in ver Will be used in phase 2 Will be used in phase 2 rintFuncs.h rintDe messages, used in test driver rintError.c IPSInstruction Disassembler.h tRegName.c The Makefile contains infor mation for the make command, telling it how to compile this program (and the future disassembler program). Check the contents of Makefile to understand its structure. To compile this program, type make disUtil at a command-line prompt. The make command will create a compiled executable called disUtil. You can run your program by typing its name at the command line. It takes two optional parameters: a filename and an integer 1 if you want to turn on debugging. If you run the program with the minimalist starter test file provided above, you'll see that for now it just prints the contents of the test file with a line number inserted at the beginning of each line isUtil testfileStarter.txt

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

Students also viewed these Databases questions

Question

When do you put parentheses ( ) around a number?

Answered: 1 week ago