man(1)
β¨ NAME β¨
okay bestie, this is the 4glc manual π it's the Aubit 4GL compiler, and it is giving main character energy π
π SYNOPSIS π
4glc [options] -oOutFile.ext file.ext [file.ext ...]
π DESCRIPTION π
okay so the Aubit 4GL source compiler, 4glc, is usually invoked through the 4glpc wrapper π«Ά but you can call it directly, like this:
4glc <filename>.4gl
ngl, for historic reasons 4glc can also compile most modules into an executable β¨ the way that works is it uses the normal C compiler and passes any options it doesn't recognise straight on to it. some examples bestie:
4glc file.4gl -c -o file.o
4glc -shared file.4gl -o file.4ge
4glc -static -echo file.4gl -o file.4ge
4glc -debug file.4gl -o file.debug
4glc -map -echo file.4gl
the first one compiles to an object file instead of a linked executable π¦
it is now best practice, unless there is a seriously good reason, to NOT call4glcdirectly at all π invoke it through4glpcinstead!
πΈ OPTIONS πΈ
When A4GL_LEXTYPE=C:
-o[outfile]β names the output file- (no flags) β compiles to C only
When A4GL_LEXTYPE=PERL:
- (no flags) β compiles to Perl only
Other options:
-G,--globalsβ generates the globals map file πΊοΈ-S,--silentβ no output other than errors π€«-V,--verboseβ verbose output, tell me everything π£-N name,--namespace nameβ prefixes all functions withname(defaultaclfgl_) π§-v,--versionβ shows the compiler version and exits π₯-f,--version_fullβ shows the full compiler version and details π-?,--helpβ shows this help and exits π-t TYPE,--lextype=TYPEβ output language,TYPE=C(default) orPERLπ-k,--keepβ keeps intermediate files (this is the default) π-w,--keep-warnβ keeps the warnings output file.warn(default is do not) β-K,--cleanβ cleans intermediate files when done π§Ή-s0|1,--stack_trace 0|1β includes the stack trace in the file π¦-h,--as-dllβ makes-oby linking all resulting objects into a shared library π-H,--sharedβ compiles each input object into a shared object (.so/.aso/.dll) β¨
okay so if outfile wasn't specified, it gets generated from the first 4gl file name you gave it π
and any options that aren't recognised get passed to the C compiler, but only if -c, -o, -d or -l was specified π«Ά
π¦ SEE ALSO π¦
bestie that's the whole page π version 1.0, 17 Aug 2022, you're welcome β¨π
π¦ where this page comes from
- fedora 43: aubit4gl 1.6.1.p5-3.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-1.0-or-later AND LGPL-2.0-or-later AND MIT AND BSD-3-Clause
- fedora 43: aubit4gl 1.6.3.p1-1.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-1.0-or-later AND LGPL-2.0-or-later AND MIT AND BSD-3-Clause
- fedora 44: aubit4gl 1.6.3.p1-3.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-1.0-or-later AND LGPL-2.0-or-later AND MIT AND BSD-3-Clause
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms