Prikaz jedne poruke
Stara 30.6.2012, 18:58   #3
dzangrizalo
Član
 
Član od: 12.3.2007.
Lokacija: Cacak
Poruke: 377
Zahvalnice: 104
Zahvaljeno 57 puta na 41 poruka
Slanje poruke preko MSN-a korisniku dzangrizalo Slanje poruke preko Skypea korisniku dzangrizalo
Određen forumom Re: Sta je stek ?

Mislim da se "Stek"-ovi rasporedjuju u RAM. Evo ti sta sam uspeo da nadjem na wiki : "
There are many variations on the basic principle of stack operations. Every stack has a fixed location in memory at which it begins. As data items are added to the stack, the stack pointer is displaced to indicate the current extent of the stack, which expands away from the origin.
Stack pointers may point to the origin of a stack or to a limited range of addresses either above or below the origin (depending on the direction in which the stack grows); however, the stack pointer cannot cross the origin of the stack. In other words, if the origin of the stack is at address 1000 and the stack grows downwards (towards addresses 999, 998, and so on), the stack pointer must never be incremented beyond 1000 (to 1001, 1002, etc.). If a pop operation on the stack causes the stack pointer to move past the origin of the stack, a stack underflow occurs. If a push operation causes the stack pointer to increment or decrement beyond the maximum extent of the stack, a stack overflow occurs."
Evo ti i linka ka strani, pa imas tu bas detaljno ako te zanima.


http://en.wikipedia.org/wiki/Stack_%...ure_of_a_stack
dzangrizalo je offline   Odgovor sa citatom ove poruke