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

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. A test 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 by typing the following command on fourier e/rwang67/public/proj Files description: disUtilDriver.c 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 MIPSInstruction. binToDec.c Makefile testfileStarter.txt same.h process_arguments.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 debugging messages, used in test driver Prints error messages, used in verifyMIPSInstruction Will be used in phase 2 Will be used in phase 2 rintFuncs.h printDebug.c printError.c Disassembler.h getRegName.c The Makefile contains information 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 disUtil 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. A test 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 by typing the following command on fourier e/rwang67/public/proj Files description: disUtilDriver.c 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 MIPSInstruction. binToDec.c Makefile testfileStarter.txt same.h process_arguments.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 debugging messages, used in test driver Prints error messages, used in verifyMIPSInstruction Will be used in phase 2 Will be used in phase 2 rintFuncs.h printDebug.c printError.c Disassembler.h getRegName.c The Makefile contains information 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 disUtil 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_2

Step: 3

blur-text-image_3

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

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions