Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Can a Fortran77 program from a Solaris machine run on Os X?

Can a Fortran77 program from a Solaris machine run on Os X?
Thread Tools
Forum Regular
Join Date: Jan 2001
Location: Sacramento, CA, USA USA USA
Status: Offline
Reply With Quote
Aug 11, 2004, 02:13 PM
 
I have a small network of Suns running Solaris here at work. There are lots of programs compiled using sun's f77 compiler. Could these be ran on a mac with OsX? Could the uncompiled version be compiled with g77 or Absofts F77 compiler?

Thanks
daveninja.com
     
Professional Poster
Join Date: Sep 1999
Location: Ottawa, ON, Canada
Status: Offline
Reply With Quote
Aug 11, 2004, 02:16 PM
 
You will need to recompile them. After that they should work.

Compiled apps wouldn't run because Sun's don't use PowerPC CPUs. They use Sparc CPUs.
     
Forum Regular
Join Date: Jan 2001
Location: Sacramento, CA, USA USA USA
Status: Offline
Reply With Quote
Aug 11, 2004, 04:20 PM
 
I tried to compile the .f files with g77 but just got a bunch of errors. Should f77 .f files be able to be compiled with g77?
daveninja.com
     
Dedicated MacNNer
Join Date: Sep 2002
Status: Offline
Reply With Quote
Aug 12, 2004, 02:58 AM
 
If the F77 files are really written in F77 then they should compile without a hitch. Some simple extensions (like IMPLICIT NONE) should also work just fine. Beyond that, all bets are off. First off, what does the Sun compiler say if you compile with -C and -ansi (to get all the checking turned on)? See if similar errors turn up to when you try compiling with g77. FWIW, what errors do you get on your OSX box?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2