1.

Consider a program P that consists of two source modules M1(contains reference to a function defined in M2) and M2 contained in two different files.(a) Edit time(b) Compile time(c) Link time(d) Load timeI had been asked this question in my homework.Query is from Top-Down Parsing topic in section Topdown Parsing of Compiler

Answer»

The correct choice is (c) Link time

To EXPLAIN I would say: Compiler transforms source code into the MACHINE language which is in binary.

Kinds of OBJECT codes:

i. Defined symbols, which allow it to be called by other modules,

ii. Undefined symbols, which call the other modules where these symbols are defined, and

iii. Symbols which are used internally withinobject FILE for relocation.



Discussion

No Comment Found

Related InterviewSolutions