Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Step: 3

blur-text-image

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 Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

a. When did your ancestors come to the United States?

Answered: 1 week ago

Question

How will the members be held accountable?

Answered: 1 week ago

Question

a. Do team members trust each other?

Answered: 1 week ago

Question

a. How will the leader be selected?

Answered: 1 week ago