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

Discussion Overview

The discussion revolves around the Silverfrost (Salford) Fortran95 compiler, specifically its ability to produce stand-alone executable files without requiring additional library files. Participants explore the functionality of this compiler in comparison to other Fortran compilers.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant inquires whether the Silverfrost Fortran95 compiler can generate a stand-alone executable that includes all necessary library routines, as their Delphi compiler does.
  • Another participant questions if it is common for Fortran compilers to require a DLL file for executables to run, seeking information on which compilers can produce stand-alone executables.
  • A participant shares their experience with an older version of the Salford compiler, stating that it could create stand-alone executables, contrasting this with their current experience using the Fortran95 version.
  • One participant speculates on three possibilities regarding the inability to create a stand-alone executable with FTN95: the compiler may not support it, the demo version may have limitations, or the necessary linker options may not have been identified.
  • Another participant suggests using the G95 compiler as an alternative, claiming it can produce stand-alone executables without restrictions.
  • A later reply confirms successful use of G95, resulting in the creation of a stand-alone executable without a nag screen.

Areas of Agreement / Disagreement

Participants express differing experiences and opinions regarding the capabilities of the Silverfrost Fortran95 compiler. There is no consensus on whether the FTN95 compiler can produce stand-alone executables, and multiple views on the use of alternative compilers are presented.

Contextual Notes

Participants note the presence of a nag screen in the Silverfrost compiler and discuss the implications of using the freeware version versus other compilers. There are unresolved questions about the specific linker options available in FTN95.

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
5K