- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI, all. I use vtune to help men get the applicatin call stack, but have some problem.
if i do not add the static before the functions, the vtune can't get the call stack of the functions.for example:
if i do not add the static,the vtune will only get two funtion:testa,testb
if add the static,the vtune will get the call stack. so my question is why the vtune can't get the call stack and the words 'static' effect it?
my computer configuration:
CPU:Intel E5504 2.0G
OS: Suse 11 Sp1
GGCC: (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973] CC: (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
static int testa(int a)
{
....
}
static int testb(int b)
{
return testa(b)
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Wang:
What compiler options are you using? Most likely, optimization is inlining the functions and, thus, you won't see call stacks for these functions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OS: Suse 11 Sp1
if i use the gcc 4.2.4,i can not get the call stack.
but if i use the gcc 4.3.4,i can get the call stack with the same source file and makefile. why??
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page