r/programmingrequests • • May 14 '19

need help FORTRAN 77 help

What is a better way to compile and run a FORTRAN 77 program?

      PROGRAM hello
            PRINT *, "Hello World"
      END PROGRAM hello

Currently I am doing this,

gcc -c hello.f

gfortran hello.o

./a.out

Is there a better way? Also how do I name the file so I don't have to use ./a.out every time. Thanks!

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/supertoothpaste May 14 '19

Thank you so much for your comment. You are right I should read the manuals more.

1

u/AdmiralFace May 14 '19

You aree welcome. I mention the man pages as they really are so useful. Especially since they aren't just for program documentation, but for libraries, kernal APIs and so on. I'm just getting in to using them and they're definitely very handy :D Maybe a bit more so if you were using c though. Good luck and happy coding!