Question: Program and Instruction a ) Write a simple c program that subtracts two numbers, name it sub.c b ) Test the program and ensure it

Program and Instruction
a) Write a simple c program that subtracts two numbers, name it
sub.c
b) Test the program and ensure it does fulfill the requirement
c) Compile the program
d) Submit the assembly language for the program in step (a)
e) Using the binary program of sub, report below statistics for 20
instructions
1) Number of executed instructions
2) Number of loads and stores
3) How long the program took to execute
NOTE: Simplescalar gcc called sslittle-na-sstrix-gcc is needed for this part

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!