1man(1) 4glc man page man(1)
2
3
4
6 4glc - Aubit 4GL compiler
7
9 4glc [options] -oOutFile.ext file.ext [file.ext ...]
10
12 Aubit 4GL source compiler 4glc is generally invoked using the 4glpc
13 wrapper. It can be involked directly:
14
15 4glc <filename>.4gl
16
17 For historic reasons, the 4glc compiler can also compile most modules
18 to an executable. In order to do this the 4glc compiler uses the normal
19 C compiler and passes unknown options on to it e.g.:
20
21 4glc file.4gl -c -o file.o
22 4glc -shared file.4gl -o file.4ge
23 4glc -static -echo file.4gl -o file.4ge
24 4glc -debug file.4gl -o file.debug
25 4glc -map -echo file.4gl
26 compiles to an object file rather than a linked executable
27
28 It is now best practice, unless there is a very good reason otherwise,
29 to not call 4glc directly as all, and to invoke it via the 4glpc com‐
30 piler instead.
31
33 When A4GL_LEXTYPE=C :
34 -o[outfile] name output file
35 (no flags) compile to C only
36
37 When A4GL_LEXTYPE=PERL :
38 (no flags) compile to Perl only
39
40 Other options:
41 -G, --globals
42 Generate the globals map file
43
44 -S, --silent
45 No output other then errors
46
47 -V, --verbose
48 Verbose output
49
50 -N name, --namespace name
51 Prefix all functions with name(default 'aclfgl_')
52
53 -v, --version
54 Show compiler version and exit
55
56 -f, --version_full
57 Show full compiler version and details
58
59 -?, --help
60 Show this help and exit
61
62 -t TYPE, --lextype=TYPE
63 Output language, TYPE=C(default) or PERL
64
65 -k, --keep
66 Keep intermediate files (default)
67
68 -w, --keep-warn
69 Keep warnings output file [.warn](default=do not)
70
71 -K, --clean
72 Clean intermediate files when done
73
74 -s0|1, --stack_trace 0|1
75 Include the stack trace in file
76
77 -h, --as-dll
78 Make -o by linking all resulting object into shared library
79
80 -H, --shared
81 Compile each input object into shared object (.so/.aso/.dll)
82
83 If 'outfile' was not specified, it is generated from first 4gl file
84 name specified. All options that are not recognised, are passed to C
85 compiler, if -c -o -d or -l was specified.
86
88 http://aubit.com/aubit4gl/manuals/aubman.pdf
89 http://aubit.com/aubit4gl/manuals/aubitqref.pdf
90
91
92
93
941.0 17 Aug 2022 man(1)