HW10 - alignment, and uses an implicit free list with the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework 10 Problem 1: We use Lazy Binding and the following tables are initial GOT and PLT. GOT table PLT table We know the address of addvec is 40086ac8, and after we first “call 8048464”, The GOT table would be updated. Please fill in the updated GOT table. Problem 2: Like Practice Problem 10.6 on Page 739 in the ICS textbook, determine the block sizes, header values and sizes of padding inside the block that would result from the following sequence of malloc requests. Assumptions: (1) The allocator maintains double-word
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: alignment, and uses an implicit free list with the block format from Figure 10.41 on Page 742. (2) Block sizes are rounded up to the nearest multiple of eight bytes. (3) The heap is completely free before the following malloc requests. The allocator enforces the first fit placement policy. Request Block size (decimal bytes) Block header (hex) Padding Size (decimal bytes) malloc(1) malloc(8) malloc(9) malloc(152)...
View Full Document

Page1 / 2

HW10 - alignment, and uses an implicit free list with the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online