FLENGBUNDLE(1)

πŸ“¦ version 23, in nixos 26.05, nixpkgs unstable

πŸ’… 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