1GAC(1)                           User Commands                          GAC(1)
2
3
4

NAME

6       gac - Compile GAP input files
7

SYNOPSIS

9       gac [-d] [-c|-C] [-o <output>] {-f<option>} <input> ...
10

DESCRIPTION

12       GAC  compiles  GAP  input  files, which must be GAP source code (suffix
13       '.g' or ´.gap'), C source code (suffix '.c'), or  compiled  code  files
14       (suffix '.o').
15

OPTIONS

17       If  neither  -c nor -C is given, then gac compiles the code completely,
18       producing a new kernel for static compilation or a dynamically loadable
19       '.so' file for dynamic compilation.
20
21       -d, --dynamic
22              Compile for dynamic loading.
23
24       -c, --compile
25              Only compile the input files to '.o' object files, which must be
26              further linked to make a static kernel or  dynamically  loadable
27              module.
28
29       -C, --create-c
30              Only  compile the input files to C code, which will require com‐
31              pilation and linking to be usable.
32
33       -r     Statically compiled files are assumed to be given  by  pathnames
34              relative  to  the  GAP  root, and will be compiled for automatic
35              loading when files are sought relative to the GAP root.
36
37       -o, --output <output>
38              Set the name of the output file.
39
40       -ffast-int-arith
41              Emit code for arithmetic operations which works faster  if  both
42              operands are small integers, and slower otherwise.
43
44       -ffast-plain-lists
45              Emit  code  for  list access which works faster if the list is a
46              plain list, and slower otherwise.
47
48       -ffast-list-funcs
49              Inline the list functions 'Add' and 'Length', for a small  speed
50              boost.
51
52       -fno-check-types
53              Emit  no  error checks for element types, which improves perfor‐
54              mance but may result in a crash if an error happens.
55
56       -fno-check-list-elms
57              Emit no error checks for list access, which improves performance
58              but may result in a crash if an error happens.
59
60       -p <option>
61              Pass the given option to the C compiler.
62
63       -P <option>
64              Pass the given option to the C linker.
65
66       -k, --gap-compiler <path>
67              Use  the  given  path  to  find  the  GAP binary, instead of the
68              default.
69
70       -i, --gap-include <path>
71              Use the given path to find the GAP header files, instead of  the
72              default.
73
74       -l, --gap-binary <path>
75              Use  the given path to find the GAP binary directory, instead of
76              the default.
77

SEE ALSO

79       gap(1), update-gap-workspace(1)
80
81
82
83GAP                                 4.10.1                              GAC(1)
Impressum