Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-14-2009, 05:10 AM   #1
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, 08:04 AM   #2
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 296

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

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


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 11:39 AM
Min Heap ShaqDiesel Programming 5 03-26-2008 06:30 PM
Heap in nasm des_a Programming 2 06-25-2007 12:17 AM
heap or stack yashwantpinge Programming 1 03-17-2006 08:25 AM
Disk Compaction oulevon Linux - Laptop and Netbook 5 03-05-2004 05:22 PM

All times are GMT -5. The time now is 09:43 PM.

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