Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following C functions and assembly code: int fun5(int a) { return a * 5; } int fun6(int a) { return a * 17;

Consider the following C functions and assembly code:

int fun5(int a) { return a * 5; }

int fun6(int a) { return a * 17; }

int fun7(int a) { return a * 30; } int fun8(int a) { return a * 34; } int fun9(int a) { return a * 18; } pushl %ebp movl %esp,%ebp movl 8(%ebp),%eax sall $4,%eax addl 8(%ebp),%eax addl %eax,%eax movl %ebp,%esp popl %ebp ret

Which of the functions compiled into the assembly code shown?

Group of answer choices

fun9

fun7

fun5

fun6

fun8

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions