gprof SID

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gprof SID

Chuan-Hua Chang
Can I use gprof to profile SID? And if it is possible, then how should
I activate the -pg option when building the SID simulator?

Thanks.

- Chuanhua
Reply | Threaded
Open this post in threaded view
|

Re: gprof SID

Frank Ch. Eigler
Hi -

> Can I use gprof to profile SID? And if it is possible, then how should
> I activate the -pg option when building the SID simulator?

This is possible: just configure with "--disable-shared" and build with

% make CXXFLAGS="-O2 -pg" LDFLAGS="-pg"

or something similar.

- FChE