Next: Advanced use of gp2c
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 improve memory handling.
Here some tips:
- 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 functions added, just as you use gp2c-run with GP scripts.
- More generally, gp2c-run automatically pass any line in the C file starting with 'GP;' to GP at start-up.
- As explained in Section 2.2, under emacs you
can type 'M-x compile' to recompile the shared library.
Bill Allombert
2006-01-28