I used Codex and Claude to write in Python a transpiler from C to modern Fortran. It correctly translates a handful of numerical C codes at the repo, and I will test it on larger C code bases.
source & further reading
fortran-lang.discourse.group — original article
Scientists are using artificial intelligence and large language models to rewrite old code in modern languages
Benchmarking nested do loops, MATMUL and Blas DGEMM
Ported a C code to Fortran, etiquette around it?