QUESTIONS & ANSWERS > Northwestern UniversityEECS 213HW2sol

Tip: type at least 2 characters to see suggestions.

EECS­213, Fall 2015HOMEWORK 2 SOLUTIONProblem 1 (20 points)For each IA32 assembly code sequence below on the left, fill in the missing portion of corresponding C line on theright. Simplify the C code as much as possible.foo:pushl %ebpmovl %esp,%ebpmovl 8(%ebp),%eaxsall $5,%eaxsubl 8(%ebp),%eaxmovl %ebp,%esppopl %ebpretint foo(int x){return 31*x; // (x<<5) ­ x}foo:pushl %ebpmovl %esp,%ebpmovl 8( ...[Show More]

Access Full Document
Instant download
Preview 1 out of 8 pages
Northwestern UniversityEECS 213HW2sol document preview
Purchase this document to unlock the blurred part and the rest of the document

Unlock Now

Reviews( 0 )

Access this Document

$8.00

Buy Now
Instant download
39
0

Category:QUESTIONS & ANSWERS
Number of pages:8
Language:English
Last updated:5 years ago
Downloads:0
Views:39