36 36 votes Consider a program $P$ that consists of two source modules $M_1$ and $M_2$ contained in two different files. If $M_1$ contains a reference to a function defined in $M_2$ the reference will be resolved at Edit time Compile time Link time Load time Compiler Design gatecse-2004 compiler-design easy linker + – Kathleen 9.7k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply rajan commented Sep 30, 2016 reply Follow flag edit time ??? 1 1 replyShare vishalshrm539 commented Sep 22, 2018 reply Follow flag It is the time when we write(or Edit) the program. 2 2 replyShare Pritee Gaikwad commented Dec 20, 2025 reply Follow flag Edit time: Writing/editing source code.Compile time: Translating source → object code.Link time: Combining object files & libraries → executable.Load time: Loading executable into memory for execution. 5 5 replyShare Please log in or register to add a comment.
Best answer 68 68 votes answer - C. Each module is compiled separately and then linked together to make the executable. The below commands shows how to do this for two modules $c1.c$ and $c2.c$ using $gcc$. gcc -c c1.c -o c1.o gcc -c c2.c -o c2.o gcc c1.o c2.o -o C.exe ankitrokdeonsns answered Nov 23, 2014 • edited Dec 4, 2017 by kenzou ankitrokdeonsns comment Share Follow See all 3 Comments 3 3 Comments reply tusharp commented Nov 22, 2018 reply Follow flag https://www.cprogramming.com/compilingandlinking.html nice article on linking 11 11 replyShare shivmodi94 commented Jul 27, 2022 reply Follow flag I got the point of link time but can anyone please explain what is Edit time and load time? 0 0 replyShare zgod commented Apr 4, 2025 reply Follow flag 0 0 replyShare Please log in or register to add a comment.
26 26 votes Linker are the one responsible for resolving external references . so it is link time Dexter answered Apr 14, 2016 Dexter comment Share Follow See 1 comment 1 1 comment reply Gajanan Purud commented Sep 15, 2023 reply Follow flag Nice 0 0 replyShare Please log in or register to add a comment.