Home /
Expert Answers /
Computer Science /
q2-convert-the-following-c-functions-into-armv8-assembly-language-again-comment-each-line-of-ass-pa329
(Solved): Q2. Convert the following C functions into ARMv8 assembly language. Again, comment each line of ass ...
Q2. Convert the following C functions into ARMv8 assembly language. Again, comment each line of assembly code on what it does. Note that local variables should be kept in function's stack frame. 1) Testing arithmetic operations int arithops ( int a, int b ) \{ int u,v,w; u=a?2; v=b?2; w=u+v; return w; 2) Doubles the input value int doubleMe( int a) \{ int tmp; tmp=2?a; 11tmp=a+a; return tmp; \} 3) Main function to test the above two functions int main( ) \{ int x=?3; int y=28; int z1,z2; z1=arithops(x,y); z2=doubleMe(x); return ?; 3