1GP2C(1) PARI GP2C(1)
2
3
4
6 GP2C - The GP to C compiler
7
9 gp2c [-ghfltvydWSTGV] [-i N] [-o <file>] [-p <prefix>] [file.gp]
10
11 gp2c is a program that translate GP code to C code that use the libpari
12 library. It tries to generate code looking like the PARI source code.
13
14
15 user option:
16 -o <file> : Place output in file <file>.
17
18 -g : Generate automatic garbage collection code.
19
20 -iN: Set indentation level to N spaces (default 2).
21
22 -W : Output warning about types and global variables usage.
23
24 -C : Generate range checking code.
25
26 -L : Generate #line directive for better C compiler messages.
27
28 -p <prefix>: Prefix user-defined symbol by <prefix> to avoid conflict.
29
30 -s <suffix>: Add suffix <suffix> to GP install names of functions.
31
32 -S: Assume strict declarations for functions.
33
34 query options:
35 -h : This help.
36
37 -f : Dump information about functions to stderr.
38
39 -l : Output the list of functions known to the compiler.
40
41 -t : Output the table of types known to the compiler.
42
43 -v : Output version information and exit.
44
45 debugging options:
46 -d : Increase debugging level.
47
48 -y : Switch parser to debug mode.
49
50 -T : Output syntactic tree in treetool format.
51
52 -TT : Output syntactic tree in VCG/GRL format.
53
54 -G : Generate GP code in place of C code. Don't smile.
55
56 -V : Do not clean up variables.
57
58 file.gp: file to be processed, default to stdin. The generated C code
59 is output to stdout unless option -o is used.
60
61 See the script gp2c-run for an automated compilation process.
62
63
65 Copyright 2000-2018 The PARI Group
66
67 GP2C is free software, covered by the GNU General Public License, and
68 you are welcome to change it and/or distribute copies of it under cer‐
69 tain conditions. There is absolutely no warranty for GP2C.
70
72 Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
73
75 gp2c-run(1), gp2c-dbg(1), gp(1), gcc(1)
76
77
78
79
80GP to C compiler January 2005 GP2C(1)