Is it possible to print a list of all functions used during a program run?
The program and the library used by the program is compiled with GCC without optimization.
The reason for this list is that I’d like to optimize a library which has a lot of unused functions (the library is really huge and I need only a few functions).
If you can compile them again you could use a profiler such as gprof or valgrind (with its callgrind tool). I think you wouldn’t need a new compiling if you use valgrind.