Practice ยท 4 of 4
Archive Pull-In Semantics
CHALLENGE
Difficulty: advanced+25 XP
Implement int archive_pulls(size_t used_syms, size_t defined_syms, int member_needed) modeling a linker decision: given an archive member defining defined_syms symbols of which the link currently needs used_syms (0 if none), and member_needed 1 iff the member defines a currently-undefined referenced symbol โ return 1 iff the member gets pulled into the link. This models: pull-in happens exactly when the member resolves a pending undefined reference.
Press Submit to check your solution.
Back to lesson: Practice: Pipeline Drills