Question: Please add the comment to each line for both codes saying what they do. i. Add a comment to each line of code below saying

 Please add the comment to each line for both codes saying

what they do. i. Add a comment to each line of code

Please add the comment to each line for both codes saying what they do.

i. Add a comment to each line of code below saying what it does. ii. Run these 2 simple programs in Code Composer Studio. Take a screen capture of each being run in the debugger. iii. Comment on the efficiency (both memory space and run-time) of the integer math program vs the floating point program. Hint: The Console window in the debugger gives the code size at the bottom. You should also look at the size of the equivalent assembly code produced for each program in the Disassembly window. You may assume that it takes an average of 4-6 instruction cycles per assembly instruction to execute a) #include "msp439.h" #include #define MAX PTS 3 // IMPORTANT: PUT YOUR NAME AND ECE BOX NUMBER HERE! !! void main (void) w Give total size (1 ytes) of these variables as declared int in [MAX_PTS]; float out [MAX_PTS]: volatile int i, a, SPAN-2500, OFFSET-499, M-8; // WDTCTLWDTPW WDTHOLD; / Stop watchdog timer for (1-6; 1 #define MAX PTS 3 #define M #define SHIFT 3 #define SPAN #define OFFSET 499 8 2500 // IMPORTANT: PUT YOUR NAME AND ECE BOX NUMBER HERE! !! void main (void) Give total size int in [MAX_PTS]; int out [MAX_PTS]: volatile int i,a; Long int sum; ytes) of these variables as declare wDTCT WDTPW + WDTHOLD; // Stop watchdog tme r for (1-6; 1>SHIFT

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!