Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Translate the C functions into ARM assembly language. Assume these are called from a main program. Discuss any optimizations you used to create the ARM
Translate the C functions into ARM assembly language. Assume these are called from a main program.
Discuss any optimizations you used to create the ARM assembly code.
i)
int func1( int c ) {
return (c + 5);
}
ii)
int func2( int a, int b) {
int c, d;
c = 2*a + b;
d = a - b;
return ( c + 4 );
}
iii)
int func3( int a, int b) {
if ( a == b)
return( a + b);
else
return ( a - b );
}
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