Question: implementing algorithm in C and call within Maple

I hope to reimplement an expensive algorithm in Maple over windows. The suggestion I got is to write it in C and call it inside Maple. However, the algorithm itself is quite complicated and the linux version uses saclib2.1 library which provides many useful implementations of numerical routines. 

I therefore wonder if Maple provides its own C or C++ math libraries, so that I don't need to implement everything by myself?

If, assume I implement sth. using saclib and it runs well under cygwin,  can it be called directly in Maple without any modification to the actual code if correctly compiled?

Thanks,

Peter 

Please Wait...