The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Heap and stack naan High Level Programming 5 04-29-2008 11:40 PM
Outside CEP: the infrastructure stack iBot Complex Event Processing RSS News 0 12-14-2007 07:20 PM
memory stack aladdin UNIX for Dummies Questions & Answers 1 05-16-2007 06:17 AM
stack region yakari UNIX for Advanced & Expert Users 2 12-29-2006 06:34 AM
stack query aloksave High Level Programming 4 09-16-2005 10:10 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-07-2007
Registered User
 

Join Date: Jul 2007
Posts: 91
what is stack winding and stack unwinding

helo can u tell me what do you mean by stack winding and stack unwinding
Regards,
Amit
Reply With Quote
Forum Sponsor
  #2  
Old 08-07-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
Sounds a little like homework. However:
When program run, each function(data, registers, program counter, etc) is mapped onto the stack as it is called. Because the function calls other functions, they too are mapped onto the stack. This is stack winding.

Unwinding is the removal of the functions from the stack in the reverse order.
Reply With Quote
  #3  
Old 08-07-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Where this starts getting fun is when you have exceptions or setjmp/longjmp which let you unwind the stack without returning.

Some platforms also have "structured exception handling" (OS/2,Win32) which are basically a standardised way of stack unwinding in exceptional conditions.

Some platforms (eg 32bit PA-RISC) have a bottom-up stack rather than a top-down.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0