Continue to Site

Welcome to EDAboard.com

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.

Explanation of memory management concept

Status
Not open for further replies.

sivamit

Full Member level 4
Joined
Dec 1, 2005
Messages
201
Helped
20
Reputation
40
Reaction score
14
Trophy points
1,298
Activity points
2,651
Hi can anyone please explain to me about memory management( heap stack etc..)
please..

thanks in advance

Siva
 

Memory management

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.
 

Memory management

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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top