25.3. Environment Inquiry [sec_25-1-3]

25.3.1. Function ROOM
25.3.2. Function EXT:GC
25.3.3. Machine
25.3.4. Function LISP-IMPLEMENTATION-VERSION
25.3.5. Function EXT:ARGV

25.3.1. Function ROOM

The function ROOM returns two values: the number of bytes currently occupied by Lisp objects, and the number of bytes that can be allocated before the next regular garbage-collection occurs.

25.3.2. Function EXT:GC

The function EXT:GC starts a global garbage-collection and returns three values:

  1. room occupied by Lisp objects
  2. room available for Lisp objects
  3. room permanently allocated

When the optional parameter is non-NIL also invalidates just-in-time compiled objects.

25.3.3. Machine

Platform Dependent: UNIX platform only.
The functions SHORT-SITE-NAME, LONG-SITE-NAME should be defined in a site-specific config.lisp file. The default implementations try to read the value of the environment variable ORGANIZATION, and, failing that, call uname.
Platform Dependent: Win32 platform only.
The functions SHORT-SITE-NAME, LONG-SITE-NAME should be defined in a site-specific config.lisp file. The default implementations try to read the registry.
Platform Dependent: No platform supports this currently
The functions MACHINE-TYPE, MACHINE-VERSION, MACHINE-INSTANCE and SHORT-SITE-NAME, LONG-SITE-NAME should be defined by every user in his user-specific config.lisp file.

25.3.4. Function LISP-IMPLEMENTATION-VERSION

LISP-IMPLEMENTATION-VERSION returns the numeric version (like 3.14), and the release date (like "1999-07-21"). When running on the same machine on which CLISP was built, it appends the binary build and memory image dump date in universal time (like 3141592654). When running on a different machine, it appends the MACHINE-INSTANCE of the machine on which it was built.

25.3.5. Function EXT:ARGV

This function will return a fresh SIMPLE-VECTOR of STRING command line arguments passed to the runtime, including those already processed by CLISP. Use EXT:*ARGS* instead of this function to get the arguments for your program.


These notes document CLISP version 2.45Last modified: 2008-05-14