An enhanced memory management scheme. (CCL only; requires a trust tag)
Typical usage:
(include-book "centaur/misc/memory-mgmt" :dir :system) ;; adds ttag (value-triple (set-max-mem (* 4 (expt 2 30)))) ;; 4 GB
Logically (set-max-mem n) just returns
Under the hood, loading the
Roughly speaking, (set-max-mem n) means: try to use no more than
Note that this only influences the heap memory. To avoid swapping death,
you should typically pick an
The build::cert.pl build system scans for calls of
Note that this parsing is done by a simple Perl script, so you can't just use an arbitrary Lisp expression here. Explicitly supported expressions are:
To make it possible to embed calls of set-max-mem into ordinary,
trust-tag free ACL2 code, the logical definition of
(include-book "centaur/misc/memory-mgmt-logic" :dir :system)
Note that if you load only this