C program structure -- generate a tree diagram?

karln at uunet.uu.net karln at uunet.uu.net
Sat Mar 2 05:51:13 AEST 1991


In article <1148 at cthulhuControl.COM> raisch at Control.COM (Robert Raisch) writes:
>
>I have a rather large system, running under MSDOS (Gack.) that I need to
>extract only the bits that do the work, and Microsoft C seems to want to
>*always* link in ALL the modules I tell it to, regardless of whether or
>not the code is actually used.  <heavy sigh>  Makes for an enormous 
>executable, even when I *know* I'm only using a small portion of the code.
>

	Just a point of order here, I am pretty sure, after 8 years of using
MSC, that you can link only the modules you want ONLY IF you put them into
your own library. This would be done with 

lib mylib+mod1+mod2+mod3

then compile main and link in this library.

	Fair warning though, you are going to have a b*tch of a time
figuring out how to get the make 'proceedure' to update the library
in a convient fashion. Clue: I had to echo the compiled module names
to a temp file and then include them all at once to the library ..

like they say "Mess-Dos"

Karl Nicholas
karln!karln at uunet.uu.net



More information about the Comp.lang.c mailing list