Create a command in SAGE based on the gp2c program of Bill Alombert.
I envision something like this:
sage: gp = Gp() # new instead of gp interacitve interpreter
sage: gp.ceval("""
a block of code
""")
...
at this point the gp2c translator is called and the resulting
shared object library is loaded into this instance of gp.
...
sage: gp('code that uses new functions defined in the above block of code')
resulting code runs faster since it is compiled.
This will give yet another way of writing fast compiled code from interactive/interpreter SAGE. The ways would then be:
The web page for gp2c:
http://pari.math.u-bordeaux.fr/download.html#gp2c
The spkgs by pdenapo can be found at