By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 1,210 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

how to generate the call stack(stack frame) in AIX, using C language

P: 3
Hi all.
I needed to generate a call stack in my C file. i searched a lot in google, but i didnt get the solution. i found the generation os call stack in other operating system like Solaries, Linux, and WIndows. But not in AIX. Any one please help me. thanks a ton in advance.
Nov 17 '15 #1
Share this Question
Share on Google+
4 Replies

Expert Mod 5K+
P: 9,197
I'm sorry, but I have never heard of needing to do this. I mean the compiler does it but does this mean you are writing a compiler?

Stack frames are not part of the C language spec but, instead, are part of a C implementation. That is, a C compiler design.

Likewise with the heap.

I'm very curious.
Nov 17 '15 #2

P: 3
Hi weaknessforcats,
I am not trying to write the compiler here.currently my c code wirtes some message to file(log messages to the log file). Addition to the log messags, need to print call stack also in the log file. so i need to implement "generation of callstack" in my c code. if you still not clear with my requirement, plase ask me. I will explain even better.
Nov 17 '15 #3

Expert Mod 5K+
P: 9,197
I would start here:

What do you think?
Nov 17 '15 #4

P: 3
Hi weaknessforcats,
I asked you, how to generate callstack in AIX, not in windows.I know how to generate in Windows as well as Linux. But i dont know only in AIX. please help me.
Nov 18 '15 #5

Post your reply

Sign in to post your reply or Sign up for a free account.