Silverfrost Forums

Welcome to our forums

How to decompile a Fortran .exe file?

17 Jan 2018 11:16 #21163

Hi I have fortran executable file which I want to decompile in order to reviiew the code. can any one help how it can be done.[/b][/code]

18 Jan 2018 7:21 #21164

If you can understand assembly code then try searching online for 'Free Windows Disassemblers'.

18 Jan 2018 1:09 #21167

You may be able to disassemble it, but you will not be able to restore the original Fortran source code. That means that you can, with a huge effort, find out what it does. It would be easier to read the program's help file!

In any case, even if you have someone's Fortran source code, it can be hard to understand. Even if reverse compilation were possible, you would have lost any comments there were, plus such helpful aids to understanding as indents, blank lines, etc.

If the original compilation was done with debugging options set, you might just find it easier, but if the code was compiled with optimisations, it would be harder - but then they are grades in the 'to all intents impossible' spectrum.

18 Jan 2018 2:44 #21170

Also, depending on the software, you may have accepted a usage agreement that you would not attempt to disassemble any of the code. I know that I have that in my User Agreement for my software.

Most other software, including some free software, has this as a condition of download and/or usage.

Please login to reply.