Question: Your task involves writing a program in Arm Cortex M 0 + assembly language to evaluate the performance of the Bubble Sort algorithm concerning array

Your task involves writing a program in Arm Cortex M0+ assembly language to evaluate the performance of
the Bubble Sort algorithm concerning array size. To start, create a timer interrupt using the parameters
specified in Question 1. By employing this timer interrupt alongside the SysTick Timer parameters, you can
extract the microcontroller's running time (in microseconds).
The provided pseudo code outlines the main function's structure. Your task involves implementing a
program that sorts an array using the Bubble Sort algorithm and records execution times according to the
element count. The numbers (unsigned) to be sorted are available in "array.txt," and they need to be
integrated into your program in the specified sequence. Upon completion, the memory address of the
sorted array should be stored in the R0 register, while the memory address of the execution times array
should be stored in the R1 register. The program should also save the sorted array and execution times to
the memory.

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!