Answered step by step
Verified Expert Solution
Question
1 Approved Answer
22. . The table Q22 presents the results of executing the following quite random C code at several Arduino boards (S. Monk, Programming Arduino Next
22. . The table Q22 presents the results of executing the following quite random C code at several Arduino boards (S. Monk, Programming Arduino Next Steps, p.70-71): { long i=0, j=0; for (i=0, is 2000000000, i++) j = i + i *10; if (j>10) j=0; } Table Q22 Board CPU Uno Leonardo Mini Pro Mega Due AVR 8 bit @ 16 MHz AVR 8 bit @ 16 MHz AVR 8 bit @ 16 MHz AVR 8 bit @ 16 MHz ARM Cortex M3 32 bit @ 84 MHz Execution time, ms 28 29 28 28 2 lalalala (a) (b) Describe the operations that are performed in this test code, and the relevant data type(s). Compare this test with the industry standard benchmarks Whetstone, Dhrystone, CoreMark in terms of what sort of performance is benchmarked. (4 Marks) Uno, Leonardo and Mega boards use microcontrollers (SoCs) with different capabilities in terms of peripherals, RAM and flash memories. How come their execution times are nearly identical? (2 Marks) Based on the data from the middle column of Table Q22, try to explain the observed differences in the execution time between Uno and Due. Show your working. (4 Marks) (c) 22. . The table Q22 presents the results of executing the following quite random C code at several Arduino boards (S. Monk, Programming Arduino Next Steps, p.70-71): { long i=0, j=0; for (i=0, is 2000000000, i++) j = i + i *10; if (j>10) j=0; } Table Q22 Board CPU Uno Leonardo Mini Pro Mega Due AVR 8 bit @ 16 MHz AVR 8 bit @ 16 MHz AVR 8 bit @ 16 MHz AVR 8 bit @ 16 MHz ARM Cortex M3 32 bit @ 84 MHz Execution time, ms 28 29 28 28 2 lalalala (a) (b) Describe the operations that are performed in this test code, and the relevant data type(s). Compare this test with the industry standard benchmarks Whetstone, Dhrystone, CoreMark in terms of what sort of performance is benchmarked. (4 Marks) Uno, Leonardo and Mega boards use microcontrollers (SoCs) with different capabilities in terms of peripherals, RAM and flash memories. How come their execution times are nearly identical? (2 Marks) Based on the data from the middle column of Table Q22, try to explain the observed differences in the execution time between Uno and Due. Show your working. (4 Marks) (c)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started