GP2C-RUN(1)
β¨ 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 thefile.gp.cthatgp2c-runproduced. but bestie, listen β in that case it is advised that you rename it tofile.c, so that subsequent calls ofgp2c-rundon't come through and overwrite all your changes. protect your work, she's precious. π
π FILES π
file.gp.cβ the C output ofgp2c.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 agpsession by running this script. it's giving personal assistant honestly.
π ENVIRONMENT π
GP2Cβ path to thegp2ccompiler, default:/usr/bin/gp2cGPβ path to thegpcalculator, 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 ofgp2c.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 agpsession 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 π₯
- The GP2C manual
gp2c(1)gp2c-dbg(1)gp(1)gcc(1)
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
- debian bookworm: pari-gp2c 0.0.13-1
- debian trixie: pari-gp2c 0.0.14-1
- fedora 43: gp2c 0.0.14-7.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later WITH Bison-exception-2.2
- fedora 43: gp2c 0.0.14.1-1.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later WITH Bison-exception-2.2
- fedora 44: gp2c 0.0.14.1-1.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later WITH Bison-exception-2.2
- ubuntu jammy: pari-gp2c 0.0.12-2
- ubuntu noble: pari-gp2c 0.0.13-1
- ubuntu questing: pari-gp2c 0.0.14-1
- ubuntu resolute: pari-gp2c 0.0.14pl1-1
- ubuntu stonking: pari-gp2c 0.0.14pl1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms