Welcome! Log In Create A New Profile



Posted by cdmac 
September 05, 2009 07:36PM

I knew it was a long shot, but I tried compiling and linking my engine with -pg so I could use gprof for profiling. I get a bunch of linker error complaing about "undefined reference to `_mcount'". I noticed powerpc-gekko-gprof.exe in the bin folder of devkitPPC, so I thought there might be support.

Am I doing something wrong, or is generating profiling data not supported? If not, what are the chances of devkitPPC supporting it in the future, or is there a way I could implement the functionality myself?

Re: gprof
September 05, 2009 10:38PM
You need to link with the library that handles the profiling, duh.
Re: gprof
September 06, 2009 01:16PM
Which library is that then asshole? All the documentation I read said you just need to add -pg to the compiler and linker options.
Re: gprof
September 06, 2009 04:23PM
I don't know! I would have told you if I knew.
Re: gprof
September 06, 2009 06:51PM
-lpg ?
Sorry, only registered users may post in this forum.

Click here to login