School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,456 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,646 people online right now. Registration is fast and FREE... Join Now!




call stack question

 

call stack question

nunley0

14 Apr, 2009 - 02:33 PM
Post #1

New D.I.C Head
*

Joined: 25 Mar, 2009
Posts: 7

Sorry if I didn't post this in the right place, but, what is contained within a call stack frame? Also, what order is it in in the frame? I know the return value (if any) is always the last element in the frame, but I'm not sure about the rest.

User is offlineProfile CardPM
+Quote Post


kingfeanor

RE: Call Stack Question

18 Apr, 2009 - 06:44 PM
Post #2

New D.I.C Head
*

Joined: 18 Apr, 2009
Posts: 3



Thanked: 1 times
My Contributions
A good explanation is available at Wikipedia: Call Stack. The brief explanation is that the makeup of the stack is architecture dependent. x86 systems work differently then SPARC system which are different then PowerPC systems, etc. There are also several function calling conventions which will change the items/order in the stack frame (http://en.wikipedia.org/wiki/Calling_convention). So to get the best explanation for your architecture, look it up in the assembly instructions.
User is offlineProfile CardPM
+Quote Post

nunley0

RE: Call Stack Question

28 Jun, 2009 - 08:56 AM
Post #3

New D.I.C Head
*

Joined: 25 Mar, 2009
Posts: 7

QUOTE(kingfeanor @ 18 Apr, 2009 - 06:44 PM) *

A good explanation is available at Wikipedia: Call Stack. The brief explanation is that the makeup of the stack is architecture dependent. x86 systems work differently then SPARC system which are different then PowerPC systems, etc. There are also several function calling conventions which will change the items/order in the stack frame (http://en.wikipedia.org/wiki/Calling_convention). So to get the best explanation for your architecture, look it up in the assembly instructions.


Thanks, this definitely helped.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 02:07AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month