For 2), the functionality is potentially interesting -- albeit orthogonal to most uses and users. I found an example of some calling code at:
http://axiom-wiki.newsynthesis.org/images/axiom--test--1/src/algebra/c05.spad.tex I agree that this is ugly. I tried to debug the code with: )expose FORT )boot $addUnderscoreToFortranNames := true )boot $fortranDirectory := nil )boot $fortranLibraries := '"-lm" )boot $fortranTmpDir := '"/tmp/" )boot $fortranCompilerName := '"gfortran" -- the following is incorrectly specified )boot makeFort("test",[], [], [], [], []) This gave a system error: "The function BOOT::SYSTEM is undefined". As a naive question, what is a standard way of calling an OS function in boot? The current calls to SYSTEM are: ./src/interp/fortcall.boot: asps => SYSTEM STRCONC("cc -c ",file,".c ; mv ",file,".o ",dir) ./src/interp/fortcall.boot: SYSTEM STRCONC("cc ",file,".c -o ",file,".spadexe ",$fortranLibraries) ./src/interp/fortcall.boot: SYSTEM STRCONC (fortCompiler, addSpaces fortFileList,_ ./src/interp/fortcall.boot: SYSTEM STRCONC(objFile," < ",tmpFile1," > ",tmpFile2) I assume that NAG spent considerable effort to get the Fortran code to work - and it seems a pity to throw all of this away, although this would have an opportunity cost. --- Mark On 03/19/2018 03:13 PM, Waldek Hebisch wrote: > I propose to remove the following: > > 1) AFAICS text in src/interp/Makenotes.tex and in > src/interp/bookvol5.pamphlet is useless -- it is out of > date and mostly does not apply to current code. And from > the start it did not explain much, it contained mostly > information which can be more reliably read from the code. > > 2) src/interp/fortcall.boot and src/algebra/fortpak.spad > contain code to call Fortran routines. This code is > non-working and when it worked it was doing things > in inconvenient and complicated way. > -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.
