Unix does not attempt to recover from divide errors

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: > DEF(x.k) denote that the linker will associate an arbitrary reference to symbol x in module i to the definition of x in module k. For each example below, use this notation to indicate how the linker would resolve references to the multiply-defined symbol in each module. If there is a link-time error (Rule 1), write “ERROR”. If the linker arbitrarily chooses one of the definitions (Rule 3), write “UNKNOWN”. A. /* Module 1 */ int main() { } /* Module 2 */ static int main=1; int p2() { } (a) REF(main.1) --> DEF(_____.___) (b) REF(main.2) --> DEF(_____.___) B. /* Module 1 */ int x; void main() { } /* Module 2 */ double x; int p2() { } 7.14. SUMMARY (a) REF(x.1) --> DEF(_____.___) (b) REF(x.2) --> DEF(_____.___) 385 C. /* Module 1 */ int x=1; void main() { } /* Module 2 */ double x=1.0; int p2() { } (a) REF(x.1) --> DEF(_____.___) (b) REF(x.2) --> DEF(_____.___) Homework Problem 7.9 [Category 1]: Consider the following program, which consists of two object modules: 1 2 3 4...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online