Q? about Silverfrost (Salford) Fortran95 freeware compiler.

  • Context: Fortran 
  • Thread starter Thread starter uart
  • Start date Start date
  • Tags Tags
    Compiler Fortran95
Click For Summary
SUMMARY

The Silverfrost (Salford) Fortran95 compiler, while available as freeware for evaluation, does not produce stand-alone executable files without the inclusion of the runtime library salflibc.dll. Users have reported that earlier versions of the compiler could generate stand-alone executables. The discussion highlights the limitations of the FTN95 compiler and suggests that the G95 compiler is a better alternative, as it successfully creates stand-alone executables without additional library dependencies or nag screens.

PREREQUISITES
  • Understanding of Fortran programming language
  • Familiarity with compiler and linker concepts
  • Knowledge of executable file formats on Windows
  • Basic experience with using command-line tools for compilation
NEXT STEPS
  • Research G95 compiler features and installation process
  • Explore Silverfrost FTN95 documentation for linker options
  • Learn about creating stand-alone executables in Fortran
  • Investigate other Fortran compilers that support stand-alone executable generation
USEFUL FOR

Fortran developers, software engineers evaluating Fortran compilers, and anyone seeking to create stand-alone executables from Fortran code.

uart
Science Advisor
Messages
2,797
Reaction score
21
Hi. Recently I wanted to take a look at Fortran so downloaded the Silverfrost (formerly known as Salford) Fortran95 compiler. See:

http://www.silverfrost.com/11/ftn95/overview.asp

BTW. It's freeware for evaluation purposes but if used for profit or research you have to buy a licence. It's also got a nag screen stating this much (and displayed for about 6 to 8 seconds before to any program that it makes will run.)

One thing I'm trying to do is to figure out if this compiler/linker is able to produce a stand-alone exe file, in other words one that has any library routines already embedded. My Delphi compiler for example does it like that, it makes a stand alone exe so that you can just copy the one file to any other Windows computer and it will run. This salford/silverfrost compiler however makes really small exe files but they won't run on another computer unless I also copy the runtime library salflibc.dll.

I was just wondering if anyone else uses this compiler and if they know of any linker options to make it generate a stand-alone executable.

Thanks.
 
Technology news on Phys.org
I'll give this a bump.

Could I enquire about the Fortran compilers that other's are using. Is it usual for fortran to complile to an executable that requires the presence of a library dll file to run. What compilers can produce a stand-alone executable file?
 
A few years ago, when they were Salford, I used their terrific evaluation fortran77 version and did not have your problem. Those executables are still used, standalone and called as runtime by a Java application, every day up to now in a 24/7 application for my work. However, I am sorry I did not use the evaluation fortran95 version because of the splash screen and other restrictions.
 
Thanks for the info Chris, so their older versions of the compiler definitely could create a stand alone executable.

I thought this must be the case because in another recent thread here someone posted some Fortran90 code for a simple chess program and the author provided both the source and a stand alone executable. For comparison this stand-alone exe was about 500kB whereas the exe file that I got when I compiled it in FTN95 is only 28k. Unfortunately this 28kB file won't run on another computer unless I also copy a dll file "salflibc.dll" as well. It's not that this dll is so big, it's only 2MB, but I'd still really like to be able to make a single executable file. I am guessing that it's down to one of the following three possibilities but at the moment I'm not sure of which it is.

1. Their FTN95 compiler simply doesn't support the making of a stand alone executable.

2. The complier supports it but not the demo version. (though they don't state this anywhere as a limitation)

3. The compiler or linker supports it but I just haven't figured out the linker options to do it yet.

At the moment I still think it's case 3.
PS. Can I just clarify one point in case anyone has got the wrong idea. I am not concerned about the splash screen and plan on using the compiler within the guidelines for it's freeware usage. My desire to produce a stand-alone executable is not an attempt to remove the nag screen or otherwise "crack" the software in any way.
 
uart

I think a better option is to use g95 http://www.g95.org" instead of Silverfrost. It will do what you want, is free and without restrictions.

Chris
 
Last edited by a moderator:
Thanks Chris. I finally got around to downloading G95 and it works great. .Now I get a stand-alone exe file and I don't have to suffer a nag screen. Win win yeah!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K