// tmpVars.c #include int main() { int x = 97; char ch1 = 'A'; int y = 98; char ch2 = 'B'; unsigned char yç1 = 'E'; wo, [sp, 12] we, 65 wo, [sp, 11] w0, 98 wo, [sp, 4] w0, 66 strb wo, [sp, 3] 69 str mov strb mov str mov w0, wo, [sp, 2] wo, [sp, 12] ștrb wo, [sp, 11] wo, [sp, 4] wo, [sp, 3] w0, 81 wo, [sp, 2] wo, [sp, 12] w0, w0, 3 wo, [sp, 12] wo, [sp, 4] wo, wo, 3 wo, [sp, 4] WO, mov ch1 = x; ch2 = y; uc1 = 337; X += 3; y += 3; strb Idr Idr strb mov return 0; } ștrb Idr. add str // tmpVars.s .text •global .type main, %function Idr. add main str main: mov sp, sp, #16 we, 97 sub add ret sp, sp, 16 mov

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Describe what each line is doing

// tmpVars.c
#include <stdio.h>
int main() {
int x = 97;
char ch1 = 'A';
int y = 98;
char ch2 = 'B';
unsigned char yc1
wo, [sp, 12]
w0, 65
wo, [sp, 11]
we, 98
wo, [sp, 4]
WO,
str
mov
strb
mov
str
mov
66
wo, [sp, 3]
w0, 69
wo, [sp, 2]
wo, [sp, 12]
wo, [sp, 11]
'E';
strb
%3D
mov
ch1 = x;
ch2 = y;
337;
х +3 3;
у +3 3;
strb
Idr
strb
Idr.
wo, [sp, 4]
wo, [sp, 3]
81
strb
WO,
wo, [sp, 2]
w0, [sp, 12]
w0, wo, 3
wo, [sp, 12]
wo, [sp, 4]
wo, wo, 3
mov
return 0;
}
ștrb
Idr
add
str
// tmpVars.s
. text
•global
.type main, %function
Idr
add
main
wo, [sp, 4]
WO,
str
main:
mov
sub
mov
sp, sp, #16
w0, 97
add
ret
sp, sp, 16
Transcribed Image Text:// tmpVars.c #include <stdio.h> int main() { int x = 97; char ch1 = 'A'; int y = 98; char ch2 = 'B'; unsigned char yc1 wo, [sp, 12] w0, 65 wo, [sp, 11] we, 98 wo, [sp, 4] WO, str mov strb mov str mov 66 wo, [sp, 3] w0, 69 wo, [sp, 2] wo, [sp, 12] wo, [sp, 11] 'E'; strb %3D mov ch1 = x; ch2 = y; 337; х +3 3; у +3 3; strb Idr strb Idr. wo, [sp, 4] wo, [sp, 3] 81 strb WO, wo, [sp, 2] w0, [sp, 12] w0, wo, 3 wo, [sp, 12] wo, [sp, 4] wo, wo, 3 mov return 0; } ștrb Idr add str // tmpVars.s . text •global .type main, %function Idr add main wo, [sp, 4] WO, str main: mov sub mov sp, sp, #16 w0, 97 add ret sp, sp, 16
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY