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
instructions
Number of executed instructions
Number of loads and stores
How long the program took to execute
NOTE: Simplescalar gcc called sslittlenasstrixgcc is needed for this part
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
