nqp-m(1)

πŸ“¦
version 2024.09 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– nqp-m β€” Not Quite Perl Compiler πŸ’–

okay bestie, pull up a chair, because we're talking about nqp-m(1), a User Contributed Perl Documentation page, and it's literally the Not Quite Perl Compiler and I'm kind of obsessed. πŸ¦‹


🌸 SYNOPSIS 🌸

nqp-m [switches] [--] [programfile] [arguments]

that's the whole vibe check right there. switches, maybe a --, maybe a program file, maybe some arguments. we love options. πŸ’…


✨ DESCRIPTION ✨

So here's the tea: if you run it with no arguments at all, nqp-m drops you straight into a REPL. main character energy fr fr. πŸŽ€

But if you hand it a [programfile] or hit it with the -e option, it compiles that program, and by default it also executes the compiled code. not just compiling and ghosting you β€” it actually runs the thing. πŸ’–

  • -e program β€” one line of program, that's it, one line, and you're cooking πŸ“
  • -h, --help β€” display this help text, your little map πŸ—ΊοΈ
  • --target=[stage] β€” specify compilation stage to emit, pick your stage bestie ⭐
  • -t, --trace=[flags] β€” enable trace flags, so you can see πŸ‘€
  • --encoding=[mode] β€” specify string encoding mode, encoding but make it specified 🌈
  • -o, --output=[name] β€” specify name of output file, name the baby πŸ‘‘
  • -v, --version β€” display version information, always good to know who you're dealing with πŸ’œ
  • --stagestats β€” display time spent in the compilation stages, a little time audit, slay ⏱️
  • --ll-exception β€” display a low level backtrace on errors, for when things go πŸ’€ and you need the low level receipts
Note that only boolean single-letter options may be bundled β€” so like, don't go feral bundling everything you see. only the boolean single-letter ones. periodt. πŸ™ˆ

🧚 MOARVM OPTIONS 🧚

Here's the part where you gotta be careful, bestie. If you want to pass options down to the underlying MoarVM virtual machine, you have to explicitly run moar. You cannot specify these options by using the perl6 executable. like, not a vibe, it just doesn't work that way. 😭

moar [--crash] [--libpath=...] input.moarvm [program args]

And for the full menu of what moar will accept, go hit up moar --help β€” it's got a list of valid MoarVM options waiting for you. 🫢


πŸ’œ AUTHORS πŸ’œ

  • Written by the NQP contributors, see the CREDITS file. πŸŽ€
  • This manual page was written by Alessandro Ghedini for the Debian project, and may be used by others. iconic behavior honestly πŸ’…

and that's the whole page, bestie!! this was nqp-m(1), from perl v5.40.1, dated 2026-02-11 β€” go compile something gorgeous πŸŒˆβœ¨πŸ’–

πŸ“¦ where this page comes from