Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: "Wayne K. Werner" Newsgroups: scea.yaroze.problems.pc Subject: Re: long long ints for improved accuracy Date: 18 Dec 1997 07:30:37 GMT Organization: WermX Software Lines: 31 Message-ID: <01bd0b87$760261c0$b8bf43ce@wkwerner> References: <673eim$9k36@chuka.playstation.co.uk> <6740vu$9k39@chuka.playstation.co.uk> <676jav$9k310@chuka.playstation.co.uk> <3497b487.81595878@news.playstation.co.uk> NNTP-Posting-Host: port84.con2.com X-Newsreader: Microsoft Internet News 4.70.1161 Gil Jaysmith wrote: > Good linkers should only ever load in the individual object modules > which are referenced from libraries. I don't know of a linker that doesn't! > You need either a linker > which performs static coverage and strips dead code (Watcom does this; > VC++ might do it; our new one will do) or a library build with only > one function per object file. I have been informed that CW does stripping of unreffed funcs and data, making library creation a little easier (one less thing to worry about). BTW, related functions, that are always used together (ie. init and term functions of a library) should not be separate. If you use one, you use the other. Also, consider something like a 3d engine. You know if you init it, you are also going to call add_object(), del_object() etc, or there is no point in initing the engine. There is no reason, based on linking considerations, not to put all of the functions in the same source module. Logical considerations (grouping for functionality, for instance) are another matter. -- Wayne K. Werner wkwerner@con2.com