From: baldo AT chasque DOT apc DOT org Message-Id: <3.0.1.32.19971007045314.0068c780@chasque.apc.org> Date: Tue, 07 Oct 1997 04:53:14 -0300 To: djgpp AT delorie DOT com Subject: OBJECTS, LIBRARIES, CODE SIZE, ETC. Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Precedence: bulk >> > gcc -o myprog.exe f1.c f2.c mylib.a >> > >> >The linker will only link in the functions that your program calls. >> Hello Eli. Are you sure about that? It does not include all the entire >> object file and not the library? I think it works in an object file basis: >> if the program needs only a function of an object file, it includes all the >> object file. > function. Hello. Now I have a curious question: why a lot of compilers canīt remove individual functions from an object file? It would be nice to add a switch to DJGPP to remove unused individual object functions in the linker. Maybe this is not possible. If not why not? Goodbye! P.S.: I have changed the subject and repost this again because I have not received any answers, sorry. Original subject: "Re: Changes size of exe or not?". I will not repost this again if I not get any answers, donīt worry. Ivan Baldo: baldo AT chasque DOT apc DOT org - http://www.chasque.apc.org/baldo