GP2C-RUN(1)

πŸ“¦
version 0.0.14.1 Β· 4 versions
, in debian bookworm, debian trixie, fedora 43, fedora 44, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ GP2C-RUN πŸ’…

okay so bestie, this one lives in the PARI manual, and it's literally called GP2C-RUN β€” the GP to C compiler driver. she's a driver, she drives, she compiles, she slays. let's get into it 🫢


🌸 NAME 🌸

GP2C-RUN β€” The GP to C compiler driver. that's it, that's the whole vibe. πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

gp2c-run [gp2c options] [file.gp]

Compile file.gp with gp2c, then launch a gp session where the functions of file.gp are preloaded. and any options you throw at her? those get passed straight to gp2c. no gatekeeping. ✨

gp2c-run file.c

Compile file.c and launch a gp session where the functions of file.c are preloaded. important though β€” for this to work, file.c has to have suitable GP;install() lines. no GP;install() lines, no preloading, that's the rule. πŸ’…

not me being obsessed with this next part: this is especially useful if you manually modify the file.gp.c that gp2c-run produced. but bestie, listen β€” in that case it is advised that you rename it to file.c, so that subsequent calls of gp2c-run don't come through and overwrite all your changes. protect your work, she's precious. 😭

πŸŽ€ FILES πŸŽ€

  • file.gp.c β€” the C output of gp2c.
  • file.gp.so β€” the GP loadable module. the glow-up version. πŸ¦‹
  • file.gp.run β€” the commands to load the module. once a module is compiled, you can load it inside a gp session by running this script. it's giving personal assistant honestly.

🌈 ENVIRONMENT 🌈

  • GP2C β€” path to the gp2c compiler, default: /usr/bin/gp2c
  • GP β€” path to the gp calculator, default: /usr/bin/gp

🧚 FILES (again, and yes she really does this) 🧚

no cap, the original page lists this section twice. iconic behaviour, honestly. so here it is again, verbatim in spirit, because we do not skip parts in this house. 🫢
  • file.gp.c β€” the C output of gp2c.
  • file.gp.so β€” the GP loadable module.
  • file.gp.run β€” the commands to load the module. once a module is compiled, you can load it inside a gp session by running this script.

πŸ‘‘ COPYING πŸ‘‘

Copyright 2000-2018 The PARI Group

GP2C is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for GP2C. like, zero. none. don't come for her if something breaks. πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

go read those too, they're all part of the friend group. 🌸


and that's the whole page, bestie ✨ β€” this was the GP to C compiler driver section, from the PARI manual, dated November 2001, filed under GP2C-RUN(1). periodt. πŸ’–

πŸ“¦ where this page comes from