LLVM-LINK(1)

πŸ“¦
version 16.0.6 Β· 3 versions
, in ubuntu noble

okay bestie, this is a page from the LLVM manual, and honestly? she's iconic. let's get into it 🫢


🌸 NAME 🌸

llvm-link β€” the LLVM bitcode linker, aka the girl who takes all your little bitcode files and makes them one πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

llvm-link [options] filename …

like, you hand her a bunch of filenames and some options and she does her thing, periodt.


πŸ¦‹ DESCRIPTION πŸ¦‹

so llvm-link takes several LLVM bitcode files and links them together into a single LLVM bitcode file. one file. unified. main character energy ✨

and where does it go? she writes the output file to standard output β€” unless you use the -o option to specify a filename. that's it, that's the vibe. no cap.


πŸ’… OPTIONS πŸ’…

  • -f β€” turns on binary output on terminals. normally llvm-link will refuse to write raw bitcode output if the output stream is a terminal (she's got boundaries, okay?). with this option, she'll write raw bitcode regardless of the output device. no thoughts, just bytes πŸ”₯
  • -o filename β€” specify the output file name. and listen: if filename is "-", then llvm-link will write its output to standard output. yes bestie, a literal dash, that's the whole trick πŸ’«
  • -S β€” write output in LLVM intermediate language instead of bitcode. so, human-ish text. cute ✍️
  • -d β€” if specified, llvm-link prints a human-readable version of the output bitcode file to standard error. it's giving "let me show you what's inside" πŸ™ˆ
  • -help β€” print a summary of command line options. she will explain herself, as she should πŸ‘‘
  • -v β€” verbose mode. print information about what llvm-link is doing. this typically includes a message for each bitcode file linked in and for each library found. so basically she narrates her own life 😭 love that for her

🌈 EXIT STATUS 🌈

  • if llvm-link succeeds, she exits with 0. slay πŸ’–
  • otherwise, if an error occurs, she exits with a non-zero value. not slay πŸ’€

πŸ“ AUTHOR πŸ“

maintained by the LLVM Team (https://llvm.org/). the group chat admins, fr fr 🫢


2003-2024, LLVM Project β€” that's the whole legacy right there ⭐


lowkey a reminder: everything above is exactly as serious as it sounds. -f is genuinely the "please write raw bitcode even though this is a terminal" escape hatch, and -S genuinely changes what language the output is in. don't skip the boring-sounding bits, bestie, they matter πŸ’œ

okay that's the whole page! this was page 15 of the LLVM manual, dated 2024-04-14, from the LLVM-LINK(1) era of the LLVM project. ily, go link some bitcode πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from