- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a FORTRAN program, which used to run with ifort compiler. Because I am on another machine, I have to transfer it to f77.
I have a problem with options I shloud use>
the original setting is : ifort -04 -Bstatic -dn file
Can you help me transfer this command to f77?
Thank you
Hanka
I have a FORTRAN program, which used to run with ifort compiler. Because I am on another machine, I have to transfer it to f77.
I have a problem with options I shloud use>
the original setting is : ifort -04 -Bstatic -dn file
Can you help me transfer this command to f77?
Thank you
Hanka
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Exactly which compiler is "f77"? It is very likely that your Fortran code will not be recognized by a Fortran 77 compiler.
ifort does not have an -O4 level. It does have -O3. However, optimization levels are not directly comparable across different compilers, so you'll have to look at the documentation for the other compiler to see what is appropriate.
-Bstatic affects linking and says to link with static libraries.
I don't recognize -dn
ifort does not have an -O4 level. It does have -O3. However, optimization levels are not directly comparable across different compilers, so you'll have to look at the documentation for the other compiler to see what is appropriate.
-Bstatic affects linking and says to link with static libraries.
I don't recognize -dn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Exactly which compiler is "f77"? It is very likely that your Fortran code will not be recognized by a Fortran 77 compiler.
ifort does not have an -O4 level. It does have -O3. However, optimization levels are not directly comparable across different compilers, so you'll have to look at the documentation for the other compiler to see what is appropriate.
-Bstatic affects linking and says to link with static libraries.
I don't recognize -dn
ifort does not have an -O4 level. It does have -O3. However, optimization levels are not directly comparable across different compilers, so you'll have to look at the documentation for the other compiler to see what is appropriate.
-Bstatic affects linking and says to link with static libraries.
I don't recognize -dn
Sun fits the description...
http://www.atnf.csiro.au/computing/software/sol2docs/mr/READMEs/fortran_77.html
(...)
Many static system libraries, such as libm.a and libc.a, are not available in Solaris 7 or 8 environments on SPARC V9 platforms. Only dynamic, shared libraries, libm.so and libc.so, are provided. This means that -Bstatic and -dn compiler options may cause linking errors on SPARC V9 platforms with Solaris 7 or 8. Applications must use dynamic libraries in these cases.
To explicitly link with a static version of a user library while linking dynamically system libraries, use a command line that looks something like:
f77 -o prog prog.f -Bstatic -lxyz -labc -Bdynamic
This will link with libxyz.a and libabc.a, but all other libraries, including system libraries, will be linked dynamically.
(...)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So it seems that the command line given was for "f77" and not ifort?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
So it seems that the command line given was for "f77" and not ifort?
the line was given for ifort ... I have looked also, to manual and I also could not find -dn and -O4 .... but I knew it had worked for ifort.
The problem were libraries, with which libraries I should link it? ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suggest you ask whoever supports the "f77" compiler you are using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
maybe you could do f77 --version or f77 --help and find out which f77 compiler you have...

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page