Next: Common problems
Up: A gp2c tutorial
Previous: Using compiled functions in
If you have some experience of PARI programming, you may want to manually
edit the C file generated by gp2c, for example to improove memory handling.
Here some tips:
- The C file created with gp2c-run is name file.gp.c. To avoid
subsequent run of gp2c-run accidently clobbering it, it is advised to rename
this file to file.c.
- If you preserve the install() at the start of the file, you can use the command gp2c-run file.c to recompile your file and start a new GP session with your function added, just as you use gp2c-run with GP-scripts.
- As explained in Section 2.2, you can type 'M-x compile' to recompile the shared library.
Bill Allombert
2002-11-04