Symbol Management
Prev: Storage Allocation Next: Libraries
Problems
5.1
Write a C++ program with a lot of functions whose mangled names differ only in the last few characters. See how long they take to compile. Change them so the mangled names differ in the first few characters. Time a compile and link again. Do you need a new linker?
5.2
Investigate the debug symbol format that your favorite linker uses. (Some on-line resources are listed in the bibliography.) Write a program to dump the debugging symbols from an object file and see how much of the source program you can reconstruct from it.