Somebody wrote:

: Mixing these [LIB$(GET|FREE)_VM] with malloc() used to be a 
: no-no; does the fact that you have them in an AST routine 
: allow you to dodge that restriction?
  
  The DEC C and Compaq C malloc and free calls use the OpenVMS LIB 
  RTL for memory allocation and deallocation, and these calls can 
  be freely inter-mixed with the lib$get_vm and lib$free_vm calls.
  (Just don't use one set of routines to allocate some memory and 
  then use the other set of routines to deallocate the same memory.)

  The DEC C and Compaq C malloc and free calls use a "semi-documented"
  set of RTL calls: lib$vm_malloc, lib$vm_realloc, and lib$vm_free,
  and not the main lib$get_vm and lib$free_vm routines.  (I use the
  term "semi-documented" because these were in some release notes
  a long time ago, but have apparently never made it into the full
  OpenVMS LIB RTL documentation.)


 --------------------------- pure personal opinion ---------------------------
   Hoff (Stephen) Hoffman   OpenVMS Engineering   hoffman#xdelta.zko.dec.com

Reply via email to