LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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: 299

Rep: Reputation: 62
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: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration