I generated a library file (.lib) using LIB51 and expected that if I compiled an independent source file and linked it with the library, the linker would take care of only pulling in the functions that were referenced. However, the linker is including all functions in each module from the library and I'm getting linker warnings about these uncalled functions. best regard!
How are you linking the Library with your source?
I Add the library file into projiect.
If you have more than one function in a module, if a single function from the module is needed, then the entire module's code is pulled in from the library. The only way to minimize this is to make as many single function modules as possible, and insert them in the library one at a time.
Check the following support knowledgebase article: http://www.keil.com/support/docs/619.htm Jon