FLENG(1)
β¨ fleng(1) β your fave FGHC, Strand, KL1, PCN and FLENG compiler, straight from the General Commands Manual β¨
π·οΈ NAME π·οΈ
fleng β A FGHC, Strand, KL1, PCN and FLENG compiler
πΈ SYNOPSIS πΈ
fleng [OPTION ...] [FILENAME] [OBJECTFILE ...]
π DESCRIPTION π
okay so fleng is a compiler and run-time system for FLENG, a concurrent logic programming language descended from Prolog. It translates source code written in FLENG, FGHC (Flat Guarded Horn Clauses) or Strand into executable code. iconic behavior, honestly β¨
FILENAME should name a FGHC, Strand, KL1, PCM or FLENG source file, or a file previously compiled to assembler or a binary object file. C/C++ source files given on the command line will be compiled to object files and linked to the final executable unless the -c option is given. no cap π«Ά
OPTION should be one of the following:
-hβ Show usage information and exit. π--versionβ Show compiler version and exit.-wβ Disable compiler warnings.-kβ Keep intermediate files.-cβ Compile to object file, do not create an executable program.-tβ Show some internal compiler information.-aβ Show intermediate representation on standard output.-eβ Generate entry-point file for faster cross-module calls.-linkFILENAME β Make use of entry-point definitions from given file.-pβ Generate profiling information.-lLANGUAGE β Specify source language to clarify or force the translation of the source file in a particular mode. LANGUAGE should be one of"fghc","strand","kl1","pcn"or"fleng". If this option is not specified, the source language will be inferred from the source file name extension. π-checkβ Only perform syntactical and semantic checking, do not generate any output files.-ccβ Output the name of the C compiler used for building FLENG.-cflagsβ Output C compiler options suitable for compiling C code interfacing to FLENG-compiled code.-libsβ Output libraries needed to be linked to compiled FLENG code.-c++β Compile generated foreign code with C++ compiler instead of C compiler and force linking in C++ mode.-mMODULE β Specifies the name of the compiled module. If no module name is given the module name defaults to""(empty), which designates a main module.-IDIRECTORY β Prepends the given directory to the list of locations where FGHC or FLENG include files should be searched. Also applies to C compiler invocations for foreign code stubs.-foreignBASENAME β Sets the basename of the file that will hold C/C++ wrappers and stubs for foreign code. The default is"NAME~foreign"where"NAME"is the basename of the compiled source file. π¦-oOUTFILE β Produce OUTFILE and exit. Depending on the file extension, the compilation process will stop after generating a FLENG source file (.flor.fleng) an assembler file (.s), a binary object file (.o) or an executable (any other extension). As default output filename the basename of the source file is given and an executable file is created.-dβ Enable debug information, which shows slightly more information in debug logs and enables some additional error checking.-iβ Enables interactive debugging. When this option is given and the executable is invoked with the-+INTERACTIVErun-time option, a read-eval-print loop is started that allows invoking arbitrary program and library goals. π₯
Note that options can not be combined β any unrecognized option is passed to the C linker in the linking stage. You can add binary object files or libraries to the invocation of fleng which will be linked to the final executable.
πΏ ENVIRONMENT πΏ
The following environment variables change the behaviour of fleng:
FLENG_PREFIXβ Contains the directory where support binaries, include files and libraries are located. If this variable is not set, the files are located in the path specified during installation. π
π¦ EXIT STATUS π¦
The fleng utility exits 0 on success, and >0 if an error occurs. periodt π
π¦ SEE ALSO π¦
fleng(7)- More information can be found in the User's Manual and at
http://www.call-with-current-continuation.org/fleng/fleng.htmlπ
π AUTHORS π
Felix L. Winkelmann
π BUGS π
Most certainly β please submit reports to felix@call-with-current-continuation.org
That's the whole page, bestie β FLENG(1), Debian edition, dated Jan 31, 2021. Go compile something iconic π
β¨
π¦ where this page comes from
- nixos 26.05: fleng 23
- nixpkgs unstable: fleng 23
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms