title: On Memory Allocation and C++
body: <p>And I quote from MSDN <a href="http://msdn.microsoft.com/en-us/library/aa366533(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/aa366533(VS.85).aspx</a>:</p>
  
  <blockquote>
    <p>The malloc function has the
    disadvantage of being run-time
    dependent. The new operator has the
    disadvantage of being compiler
    dependent and language dependent.</p>
  </blockquote>
  
  <p>Now the questions folks: </p>
  
  <p>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. </p>
  
  <p>b) new is language dependent? Of course it should be right? Are HeapAlloc, LocalAlloc etc language independent? </p>
  
  <p>c) From a pure performance perspective are the MSVC provided routines preferable?</p>
  
  <p>Arpan</p>