FLENGBUNDLE(1)
π FLENGBUNDLE(1) β the flengbundle page, but make it make sense
okay so bestie, welcome to flengbundle(1) from the General Commands Manual β yes we're in the big-girl manual section today, pop off π
β¨ NAME β¨
flengbundle β a tool that integrates raw data into programs written in FGHC, Strand, PCN or FLENG π
π¦ SYNOPSIS π¦
flengbundle [-c] [-n NAME] [-o OUTFILE] [FILENAME]
π DESCRIPTION π
flengbundle is that girl who builds linkable object files out of raw data. Iconic behaviour, honestly.
It takes input from FILENAME if you gave it one β and if you didn't, or if you literally typed "-", it reads from standard input instead π«Ά β and it produces a C file that gets compiled into an object file. That object file can then be linked into an executable or a library. slay.
The data is accessible as an immutable array of type "char", and it's provided by a C function named NAME_1. You use it from FGHC or PCN code by calling the entry point like this:
foreign_call(NAME(A))
where "NAME" is whatever you set with the -n option (defaults to "bundle", cute). The single argument you hand to the foreign entry point gets unified with a read-only character array holding the data. no cap, that's the whole vibe π«
OUTFILE defaults to "bundle.o". And if you pass the -c option? Then the generated C file does not get compiled β it just gets stored in OUTFILE. important distinction, bestie, don't skip it π
πΈ ENVIRONMENT πΈ
These environment variables change how flengbundle behaves:
FLENG_PREFIXβ holds the directory where the default FLENG tools are installed. If this variable isn't set, the tools live in the path that was specified during installation. iykyk β¨TMPDIRβ the directory used for creating temporary files. Defaults to"/tmp"if you never set it. very chill of it π
π₯ EXIT STATUS π₯
flengbundle exits 0 on success, and >0 if an error occurs. that's it, that's the whole story π
π SEE ALSO π
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 β king behaviour, we stan π«‘
Submit bug reports by e-mail to felix@call-with-current-continuation.org π¬
ngl if something's broken, email Felix. don't just suffer in silence, bestie π
and that's the page!! brought to you by Debian, dated Dec 20, 2022 β mwah, go bundle some data π π
π¦ 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