This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to link only the used part of a lib file

Hi
I am using a lib file in my project which say contains in all 10 c functions. Now in different cases i tried to use total one or two or three or any number of functions from these lib file then also the complete library get linked and i don't see any change in the size of the output binary file that is created. In all cases the size of the output binary file is same i.e. 5KB. Can anyone tell me why i cannot see any difference between these different cases. In the map file i am able to see that all the 10 functions got some memory assigned. Do anybody have any solution on this.

0