gap man page

gap — Run the Groups, Algorithms and Programming system


gap [Options] [FILES]


GAP is a system for computational discrete algebra, with particular emphasis on Computational Group Theory.  GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects.  GAP is used in research and teaching for studying groups and their representations, rings, vector spaces, algebras, combinatorial structures, and more.


Boolean options (b, e, p, q, r, A, D, M, N, O, T, X, and Y) toggle the current value each time they are used.  Default actions are indicated first.

MEM options indicate a number of bytes.  Larger units are indicated with trailing characters: 'k' for kilobytes, m for megabytes, and g for gigabytes. For example, '512k' means 512 kilobytes.

-a MEM

Set the amount of preallocated space.


Disable/enable the banner.

-c MEM

Set the cache size.


Disable/enable quitting on Ctrl-D.


Force line editing.


Show GASMAN messages.  If this option is given once, then full garbage collections are shown.  If it is given twice, all garbage collections are shown.


Print a help message and exit.


Load an alternate init file.


Set the GAP root paths.  A leading semicolon means to append PATHS to the existing list of root paths.  A trailing semicolon means to prepend PATHS. Otherwise, the list of root paths is replaced with PATHS.

-m MEM

Set the initial workspace size.


Prevent line editing.

-o MEM

Set the hint for the maximal workspace size.  GAP may allocate more.


Enable/disable emitting extra commands to the output to tell a window handler what GAP is doing.


Enable/disable quiet mode.


Disable/enable reading of the .gaprc file.

-x NUM

Set the window width to NUM columns.

-y NUM

Set the window height to NUM rows.


Disable/enable autoloading of GAP packages.


Set the name of the current architecture.

-C <output> <input> <name>

Compile an input file with the given name into an output file.


Enable/disable debugging the loading of library files.


Set the maximal workspace size.  GAP never allocates more.


Restore a saved workspace.


Disable/enable loading of compiled modules.


Disable/enable check for completion files.


Enable/disable compatibility with GAP 3, by causing false and fail to be the same value.


Prevent restoring of workspace (causes -L to be ignored).


Disable/enable break loop.


Set the compile options for compiling GAP files.


Enable/disable CRC while reading completion.


Enable/disable CRC while completing files.

See Also

gac(1), update-gap-workspace(1)

Referenced By

gac(1), gapd(8), gp-2.11(1), update-gap-workspace(1).

4.10.2 GAP