Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Explanation of memory management concept

Status
Not open for further replies.

sivamit

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

thanks in advance

Siva
 

dardmand

Newbie level 5
Joined
Oct 30, 2007
Messages
10
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,320
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.
 

btbass

Advanced Member level 5
Joined
Jul 20, 2001
Messages
1,897
Helped
438
Reputation
880
Reaction score
287
Trophy points
1,363
Location
Oberon
Activity points
12,861
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top