29 votes 29 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 asked Sep 18, 2014 edited Jun 25, 2018 by Pooja Khatri Kathleen 6.4k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply rajan commented Sep 30, 2016 reply Follow Share edit time ??? 1 votes 1 votes vishalshrm539 commented Sep 22, 2018 reply Follow Share It is the time when we write(or Edit) the program. 0 votes 0 votes Please log in or register to add a comment.
Best answer 56 votes 56 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 2 Comments See all 2 2 Comments reply tusharp commented Nov 22, 2018 reply Follow Share https://www.cprogramming.com/compilingandlinking.html nice article on linking 8 votes 8 votes shivmodi94 commented Jul 27, 2022 reply Follow Share I got the point of link time but can anyone please explain what is Edit time and load time? 0 votes 0 votes Please log in or register to add a comment.
22 votes 22 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 See all 1 1 comment reply Gajanan Purud commented Sep 15, 2023 reply Follow Share Nice 0 votes 0 votes Please log in or register to add a comment.