Write and test an ARMv8 program to sort an array of elements. As I mentioned in

Write and test an ARMv8 program to sort an array of elements. As I mentioned in class, this problem uses a portion of your Programming Assignment 1 where you computed the smallest and largest values in an array. Here we will extend that assignment to find the “index” of the smallest and the index of the largest elements of the array. The following C code segment illustrates how we can sort the element of an array. i =0; while (i largest) { largest = a[j]; index = j;} void swap (long long int *a, long long int i, long long int j) { temp = a[i]; a[i] = a[j]; a[j] = temp; }

You may also like