LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Is there any heap compaction in C/C++? (https://www.linuxquestions.org/questions/programming-9/is-there-any-heap-compaction-in-c-c-775511/)

hs_linux 12-14-2009 04:10 AM

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?

fpmurphy 12-14-2009 07:04 AM

No, there is not heap compaction in gcc/g++.

pixellany 12-14-2009 08:04 AM

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


All times are GMT -5. The time now is 11:52 PM.