Hi, I was wondering if anyone has any experience in creating profiled libraries? My initial thoughts are to compile the library with -fprofile-generate and then linking the library against a program that does the most common cases and then re-compiling the library with -profile-use using the profile data generated from the program runs. Is the theory okay or am I missing something fundemental? Regards Kemal