I have a large number of includes in my C program. During development I experimented with different ways of doing things so I bet there a number of libraries that I have included but are not used.
Does the compiler get rid of libraries that are not used? Is there a tool that can tell me? Even if the compiler does get rid of the code, it would tidy up the source if I can get rid of some things.