GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 23-Sep-2006, 00:38
ragumrt ragumrt is offline
New Member
 
Join Date: Sep 2006
Posts: 3
ragumrt is on a distinguished road

i want know how to remove non use memory location


after the c compilation & run ,the memory allocation still there, how can i remove that not useful memory address ?any idea or soft available ??
pls help me ?
  #2  
Old 23-Sep-2006, 07:54
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 4,720
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: i want know how to remove non use memory location


Quote:
Originally Posted by ragumrt
after the c compilation & run ,the memory allocation still there, how can i remove that not useful memory address ?any idea or soft available ??
pls help me ?

1. How do you know the memory hasn't been deallocated after the program is terminated?

2. What operating system?

3. What compiler?

4. Can you show us the code?


Regards,

Dave
  #3  
Old 24-Sep-2006, 00:43
ragumrt ragumrt is offline
New Member
 
Join Date: Sep 2006
Posts: 3
ragumrt is on a distinguished road

Re: i want know how to remove non use memory location


Quote:
Originally Posted by davekw7x
1. How do you know the memory hasn't been deallocated after the program is terminated?

2. What operating system?

3. What compiler?

4. Can you show us the code?


Regards,

Dave


my os is windows XP
compiler Turbo 3.0 ,boarland c++;

code like
CPP / C++ / C Code:
#include<stdio.h>
#include<conio.h>

int main()
{

int index;
scanf ("%d ,&index);

return 0;
}
Last edited by LuciWiz : 24-Sep-2006 at 04:31. Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
  #4  
Old 24-Sep-2006, 04:32
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 917
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough

Re: i want know how to remove non use memory location


You didn't answer Dave's first question:

Quote:
Originally Posted by davekw7x
1. How do you know the memory hasn't been deallocated after the program is terminated?
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
  #5  
Old 24-Sep-2006, 08:03
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 4,720
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: i want know how to remove non use memory location


Quote:
Originally Posted by ragumrt
my os is windows XP

When you execute a program, the operating system allocates a certain amount of memory space to that program (for the executable operation codes, for the variables declared in the program and for other stuff, like stack space for calling functions, etc.). The operating system loads the program into some part of physical memory (of its own choosing) and maps the physical memory region into the virtual memory space of the program and then starts the program.

As long as the program is executing, it owns a certain amount of virtual memory. The operating system knows (and keeps track of) which processes (programs) are running, and what memory they have been granted.

When the program terminates (for whatever reason) the operating system reclaims the memory automatically.

That's what operating systems do.

Regards,

Dave
  #6  
Old 27-Sep-2006, 20:44
ragumrt ragumrt is offline
New Member
 
Join Date: Sep 2006
Posts: 3
ragumrt is on a distinguished road

Re: i want know how to remove non use memory location


thanks mr dave

i did understand
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with a console menu system BullBuchanan C++ Forum 6 20-Aug-2006 14:46
Pipeline freeze simulation darklightred C++ Forum 6 27-Jul-2006 19:37
How to read particular memory location ? realnapster C Programming Language 10 10-May-2006 09:11
Pointer Usage in C++: Beginner to Advanced varunhome C++ Forum 0 19-Aug-2005 09:25
[Tutorial] Pointers in C (Part I) Stack Overflow C Programming Language 1 08-Apr-2005 18:35

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:18.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.