view __brch__pure_C @ 17:c6544bc64a7c

New Brch -- ML_dev -- used to develop multi-lang capability in VMS, using VSs
author Sean Halle <seanhalle@yahoo.com>
date Fri, 08 Mar 2013 05:47:18 -0800
parents
children
line source
2 This branch is for use in pure C code (*not* inside VMS-based language application code)
4 There are two versions of the library -- one for pure C use, the other for use inside VMS or within applications written in a VMS-based language (IE, inside a top-level function or a call descendant of a top-level function) -- but only when the VMS is the "MC_shared" version.
6 The reason is that VMS that uses shared memory on multicores moves the SlaveVPs around among cores. But, the libC and glibC malloc stores info at the top of the stack (a "clever" hack), for a speed improvement. So, when VMS manipulates the stack pointer, and/or moves Slaves to different cores, the "free" seg faults (that was FUN to figure out ; ) So, this version of VMS implements its own malloc.