Fortran shakeout utilities? (ie. remove dead code from sources)

· Fortran Lang Discourse · Nov. 17, 2026, 1:41 a.m.
Summary
This post discusses the use of the ofort Fortran interpreter's --write-reachable option to remove dead code from Fortran source files, enhancing debugging and source file size by pruning unused modules and procedures before execution. It highlights that the emitted source remains compilable, is more efficient than previous pruning methods, and provides a command to list unreachable procedures.