View topic - Watcom __PRO,__EPI and program profile

Watcom __PRO,__EPI and program profile

anything that doesn't fit to other groups.

Watcom __PRO,__EPI and program profile

Postby steph » Wed Jun 27, 2012 9:24 am

Hello.

I'm trying to get program call tree for code analys (something like):
main
--->func1
--------->func2
--->func3

In gcc there are great funtions as backtrace,backtrace_symbols,etc.
In windows stackwalk64.
I mentioned both of them for regular systems.

I've tried to found something like them in watcom (10.6 QNX4.25), but (for now) got nothing. After reading manual for wcc I get next two options for compilier
-ee - add __EPI to end of each function
-ep - add __PRO to start of each function
It seems that after building app and running it, I will get necessary profile "tree", but wlink refuse to link object file, printing "undifined symbol __PRO,__EPI".
In manual for wlink there are no any data about __PRO,__EPI.
So is it possible to use them? Are there any other functions that can help me to get function call depth?
steph
New Member
 
Posts: 1
Joined: Wed Jun 27, 2012 9:22 am

Return to General Programming

Who is online

Users browsing this forum: No registered users and 2 guests