javac zz.java java -cp . zz big 1492 > xx.h gcc -O3 mp.c time ./a.outThe java program, zz, will choose a test case of 1492 bits, file xx.h will be created and included in the source of the C program which prints the result and “Goodness!” if it computes the provided answer.
I wrote the above code about 2003. Today (2014) I would try the mulq command and use perhaps 62 bits per long word instead of 30 bits per word.