Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

convert to C code long hello ( unsigned long * data 1 , unsigned long * data 2 , unsigned long size ) 0 0

convert to C code
long hello(unsigned long *data1, unsigned long *data2,
unsigned long size)
0000000000000000 :
0: 55 push %rbp
1: 4889 e5 mov %rsp,%rbp
4: 48897d e8 mov %rdi,-0x18(%rbp)
8: 488975 e0 mov %rsi,-0x20(%rbp)
c: 488955 d8 mov %rdx,-0x28(%rbp)
10: 48 c745 f8000000 movq $0x0,-0x8(%rbp)
17: 00
18: eb 3c jmp 56
1a: 488b 45 f8 mov -0x8(%rbp),%rax
1e: 488d 14 c5000000 lea 0x0(,%rax,8),%rdx
25: 00
26: 488b 45 e8 mov -0x18(%rbp),%rax
2a: 4801 d0 add %rdx,%rax
2d: 488b 10 mov (%rax),%rdx
30: 488b 45 f8 mov -0x8(%rbp),%rax
34: 488d 0c c5000000 lea 0x0(,%rax,8),%rcx
3b: 00
3c: 488b 45 e0 mov -0x20(%rbp),%rax
40: 4801 c8 add %rcx,%rax
43: 488b 00 mov (%rax),%rax
46: 4839 c2 cmp %rax,%rdx
49: 7406 je 51
4b: 488b 45 f8 mov -0x8(%rbp),%rax
4f: eb 16 jmp 67
51: 488345 f801 addq $0x1,-0x8(%rbp)
56: 488b 45 f8 mov -0x8(%rbp),%rax
5a: 483945 d8 cmp %rax,-0x28(%rbp)
5e: 77 ba ja 1a
60: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax
67: 5d pop %rbp
68: c3 retq

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. Explain how business strategy affects HR strategy.

Answered: 1 week ago