Re:Translate Fortran to C++ with AI and RAG
by cpgxiii on Sunday April 20, 2025 @12:30PM
(#43744791)
f2c produces pretty sketchy C code. It's very easy for reasonable thread-safe Fortran code to go through f2c and end up as C code with globals and other thread-unsafe constructs. You have to be prepared to completely rewrite the generated C code to make it usable, possibly more unpleasantly than just doing the port by hand.
f2c ? But yeah, 1 level of abstraction sucks. We need around 10 to be satisfied.