Hi, Can anyone help me. I am preparing a hardware specific library using keil C-51 compiler. I have created a library file myfun.lib, which contains 10 functions. I have written a main C file main.C where i call only 1 function (declared in myfun.lib). When compiled and linked, it was found that all the unused functions, variables from myfun.lib also utilises memory stack of processor. As per my knowledge during linking, only those called functions are linked and rest is ignored means doesnt occupy any memory stack. Can any one help me. Saurabh