| www.delorie.com/djgpp/doc/kb/kb_20.html | search |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
`src/gcc.opt' controls how the DJGPP sources are compiled. To build the C libraries for profiling, add the profiling options (e.g., `-pg') to `gcc.opt', one option per line. The library will need to be rebuilt from scratch for the new options to take effect, so a `make clean' is needed before rebuilding in the directory of interest, e.g.:
cd /path/to/djgpp/sources cd src echo "Adding profiling option to gcc.opt" echo -pg >> gcc.opt cd libc echo "Building a profiling version of libc" make clean make |
For example of how some of the sources are built without profiling, please see `src/libc/crt0/makefile' to see how the profiling support code, `src/libc/crt0/mcount.c', is built.
There are currently some problems with profiling support. The math co-processor support code, `emu387.dxe', in `src/libemu' cannot be built with profiling.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2004 by DJ Delorie | Updated Nov 2004 |