Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

convert this assembly language to equivalent C language. LFBO: .cfi_startproc endbr32 pushi %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 subl $40,

convert this assembly language to equivalent C language.

image text in transcribed

LFBO: .cfi_startproc endbr32 pushi %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 subl $40, %esp call _X86.get_pc_thunk.ax addi $_GLOBAL_OFFSET_TABLE_, %eax movl 8(%ebp), %eax movl %eax, -28%ebp) movl %gs:20, %eax movi %eax, -12%ebp) xorl %eax, %eax movi $1668575047, -18(%ebp) movw $24936, -14%ebp) movl $0, -24%ebp) jmp .L2 .L5: movi -24(%ebp), %edx movl -28%ebp), %eax addi %edx, %eax movzbl (%eax), %edx leal -18%ebp), %ecx movl -24(%ebp), %eax addl %ecx, %eax movzbl (%eax), %eax cmpb %al, %d1 je .L3 movl $0, %eax jmp .L6 .L3: addl $1, -24%ebp) .L2: cmpl jle movl $5, -24%ebp) .L5 $1, %eax .LO: movl xori je call -12 %ebp), %ecx %gs:20, %ecx .L7 _stack_chk_fail_local .L7: leave .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFEO: .size check_code, .-check_code globl main .type main, @function LFBO: .cfi_startproc endbr32 pushi %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 subl $40, %esp call _X86.get_pc_thunk.ax addi $_GLOBAL_OFFSET_TABLE_, %eax movl 8(%ebp), %eax movl %eax, -28%ebp) movl %gs:20, %eax movi %eax, -12%ebp) xorl %eax, %eax movi $1668575047, -18(%ebp) movw $24936, -14%ebp) movl $0, -24%ebp) jmp .L2 .L5: movi -24(%ebp), %edx movl -28%ebp), %eax addi %edx, %eax movzbl (%eax), %edx leal -18%ebp), %ecx movl -24(%ebp), %eax addl %ecx, %eax movzbl (%eax), %eax cmpb %al, %d1 je .L3 movl $0, %eax jmp .L6 .L3: addl $1, -24%ebp) .L2: cmpl jle movl $5, -24%ebp) .L5 $1, %eax .LO: movl xori je call -12 %ebp), %ecx %gs:20, %ecx .L7 _stack_chk_fail_local .L7: leave .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFEO: .size check_code, .-check_code globl main .type main, @function

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

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

Recommended Textbook for

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago