Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
stack is also called LIFO i-e last in first out.the item stored at the end of the memory can be deleted first.or the item stored at the end of the memory can be accessed first.
if you are using c/c++, arguments to functions, local varaibles and return values use the stack.
A stack frame is created to keep track of it all during the function call.
The heap is a heap of available memory used when the program dynamically allocates memory with a call such as 'malloc' in C or 'new' in c++.
Memory management is the fact that you have to free the memory when you have finished with it with 'free' in C or 'delete' in C++.
Otherwise you run out of memory. Forgetting to free allocated memory is normally called a memory leak and usualy results in a program crash.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.