LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-14-2009, 04:10 AM   #1
hs_linux
LQ Newbie
 
Registered: Dec 2009
Posts: 14

Rep: Reputation: 0
Is there any heap compaction in C/C++?


I want to know if the runtime provided by GNU for C/C++ does any heap compaction? Or in other words, if the address of objects stored in pointers or long can ever change?

If yes, then does any responsibility come on the programmer because of this?
 
Old 12-14-2009, 07:04 AM   #2
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 285

Rep: Reputation: 61
No, there is not heap compaction in gcc/g++.
 
Old 12-14-2009, 08:04 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Moved: This thread is more suitable in <Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply

Tags
c++, heap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Heap of Problems puesdo Linux - Newbie 1 07-25-2009 10:39 AM
Min Heap ShaqDiesel Programming 5 03-26-2008 05:30 PM
Heap in nasm des_a Programming 2 06-24-2007 11:17 PM
heap or stack yashwantpinge Programming 1 03-17-2006 07:25 AM
Disk Compaction oulevon Linux - Laptop and Netbook 5 03-05-2004 04:22 PM


All times are GMT -5. The time now is 05:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration