In embedded we often listen word like low footprint library.
so how can i know the footprint of my library.so or library.a file..?
how can i calculate that
is it same as the memory size of that library?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only real why to find out the memory footprint is by running the executable that uses the library and see how it uses it. An executable typically uses only a subset of a library. For example a library might have a list that holds objects that are dynamically created by the library when a client pushes another item to the list. The more items that are pushed to the list, the more memory consumed by the library.
You can see how much memory a process consumes (heap and otherwise) by looking in procfs: cat /proc//mem.
“ps aux” will also give you the virtual memory size (VSZ).