#112721 - simonjhall - Tue Dec 19, 2006 8:51 pm
I'm reaching the stage with my Quake port where the performance is starting to become my main focus. Yeah, you're gonna automatically say that it's in the rendering, but that's not actually true :-)
As I can't whip out a profiler to see what's going on (I seem to remember gprof moaning at me when linking), I'm thinking about rolling my own. An alternate method of properly finding bottlenecks in the code would be to add profiling support to an emulator (not too hard...).
The most obvious way to do this would be to add a custom epilogue and prologue to each function, but I can't find an obvious way of telling gcc that I'd like to do this.
So...has anyone ever set up their own prologue with gcc? I can see options for other architectures, just not ARM.
----
Oh another way would be to replace all bl-s/bx-s with a dash of code but I'd like to do it properly for once :-D
_________________
Big thanks to everyone who donated for Quake2
As I can't whip out a profiler to see what's going on (I seem to remember gprof moaning at me when linking), I'm thinking about rolling my own. An alternate method of properly finding bottlenecks in the code would be to add profiling support to an emulator (not too hard...).
The most obvious way to do this would be to add a custom epilogue and prologue to each function, but I can't find an obvious way of telling gcc that I'd like to do this.
So...has anyone ever set up their own prologue with gcc? I can see options for other architectures, just not ARM.
----
Oh another way would be to replace all bl-s/bx-s with a dash of code but I'd like to do it properly for once :-D
_________________
Big thanks to everyone who donated for Quake2