Re: SHARED OBJECTS/LIBRARIES
Posted in 1995
Timothy Hood (timothy.hood@sltrib.com) wrote: : The P-code version, being only a "runner", doesn't really care if a : function is defined but not used. The only way to obtain the same kind of : benefit with the P-code version would be to build a program which: : 1. knows the location of your source, including library source. : 2. "sniffs" your source to determine what functions are being called. : 3. finds those functions and "cat"s them to the .4gi, ignoring any functions : which aren't needed. I have written some shell and awk scripts, which accomplish these tasks. The reason is fglgo core dumps, when .4gi is too large, so I had to reduce amount of .4go linked together. The same thing (with some bugs) does Fourgen CASE Tool. : My guess would be that all of this is probably not worth the effort. : If a function needs only a couple of functions, it would probably be : easier to create a script file like: : fglpc {source file list} : cat those .4go's to a .4gi : cat used library .4go's >> the .4gi : Hope this helps/spawns a worthy discussion. : Tim -- Zdeno Miklas SOFTEC spol. s r. o. e-mail: ash@softec.sk Kutuzovova 23 phone : 42-7-273805 ext.128 831 03 Bratislava fax : 42-7-272537 SLOVAKIA