And I quote from MSDN http://msdn.microsoft.com/en-us/library/aa366533(VS.85).aspx:
The malloc function has the disadvantage of being run-time dependent. The new operator has the disadvantage of being compiler dependent and language dependent.
Now the questions folks:
a) What do we mean that malloc is run-time dependent? What kind of dynamic memory allocation functions can be independent of run-time? This statement sounds real strange.
b) new is language dependent? Of course it should be right? Are HeapAlloc, LocalAlloc etc language independent?
c) From a pure performance perspective are the MSVC provided routines preferable?
Arpan
newbehaviour is not compiler dependent; how it achieves its purpose is of course compiler dependent (but it is also an uninteresting detail) and also system dependent...(as malloc after all) ... - ShinTakezou