I just released a C function entry/exit instrumentor with source called "interjector".
It's a simple C preprocessor that inserts macros at all function entry- and exit points. These macros can then be defined to perform different things, such as call flow logging, performance analysis, and similar diagnostics.
If you think this might help you, feel free to grab it from http://iki.fi/sol/code.html
C instrumentor w/source
Started by Sol_HSA, Oct 04 2007 07:06 PM
2 replies to this topic
#2
Posted 04 October 2007 - 10:36 PM
Nice
. Does it also work for C++?
BTW, from Visual C++ 7.1 and up, you can use the compiler options /Gh and /GH to let the compiler generate calls to _penter() and _pexit() on function enter and exit, respectively, which you can implement yourself to do the exact same things.
BTW, from Visual C++ 7.1 and up, you can use the compiler options /Gh and /GH to let the compiler generate calls to _penter() and _pexit() on function enter and exit, respectively, which you can implement yourself to do the exact same things.
C++ addict
-
Currently working on: the 3D engine for Tomb Raider.
-
Currently working on: the 3D engine for Tomb Raider.
#3
Posted 05 October 2007 - 05:58 AM
.oisyn said:
Nice :). Does it also work for C++?
The target platform had no debugging support, so this was an attempt to find an obscure crash bug.
http://iki.fi/sol - my schtuphh
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












