malloc/calloc debug/release build differences

malloc/calloc debug/release build differences


I was wondering if there was any difference in the use of malloc or calloc in building release or debug versions? I heard that the way the Microsoft compiler differs is by inserting non-zero elements into the allocated array in order to help in determining heap corruption.
So, if I allocate dynamic memory and do not explicitly assign default values to the array, how does the intel 8.1 compiler handle these?

Many thanks in advance if you know the answer to this. I'm just checking how this works with my builds now.


1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.