Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SHOW WORK ...............Your task is to implement ARM Assembly functions using the REV and RBIT instructions. Your solutions should execute as fast as possible, so

SHOW WORK ...............Your task is to implement ARM Assembly functions using the REV and RBIT instructions. Your solutions should execute as fast as possible, so implementing them with loops is not acceptable. Instead, you need to find the shortest possible straight-line sequence of instructions that will do the reversal. Hint: You may find the .rept directive to be useful. Create an assembly language file containing three functions. The first is used for run-time performance comparisons and is to be implemented exactly as shown below: \texttt{CallReturnOverhead: BX LR} You are to code the other two without using the RBIT, REV, REV16 or REVSH instructions: \texttt{uint32\_t ReverseBits(uint32\_t word) ;} Returns a result that corresponds to reversing the order of all the bits in its input. \texttt{uint32\_t ReverseBytes(uint32\_t word) ;} Returns a result that corresponds to reversing the order of all the bytes in its input.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions