|
|
Fortran (free or cheap) for Mac OSX?
|
|
|
|
Fresh-Faced Recruit
Join Date: May 2000
Location: Still on Earth, prisoner of gravity
Status:
Offline
|
|
Do you have any idea if there is either a fortran compiler or an egcs-like multiple-language compiler available for OS X? I am most interested in finding out if there is either a free (included by default or downloadable from where?) or relatively inexpensive fortran compiler. Absoft puts out a great product that I can't afford.
While I'm beginning to learn python for much of my future programming needs, I will definitely need to continue using fortran, so any leads would be very valuable.
Thank you.
PS: Please don't ridicule my use of fortran; I do scientific programming (astronomy) to solve problems, not to make beautiful, portable products... (If I want AbsT to equal 273.1, "AbsT=273.1" does the job!) Also, I've written scores of thousands of lines of code and there are untold millions of lines of code that are in the community so that wheels don't have to be constantly recreated. And no, I'm NOT defensive. I always spill coke on my keyboards.... ;-)
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2000
Status:
Offline
|
|
Hi, I needed Fortran but got away with using f2c (Fortran to C translater) instead. Download it from http://netlib.bell-labs.com
Contact me if you have trouble compiling it.
/P
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2000
Status:
Offline
|
|
Hi, I needed Fortran but got away with using f2c (Fortran to C translater) instead. Download it from http://netlib.bell-labs.com
Contact me if you have trouble compiling it.
/P
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: May 2000
Location: Still on Earth, prisoner of gravity
Status:
Offline
|
|
Thanks persquare. I'm familiar with f2c, but have not used it extensively. Is it fairly robust or does it tend to choke sometimes? My code is perfect, of course , but some of the other code I compile can use old style tricks...
On this track though, are C compilers then either included in default OS X install, or do you have to install the developer tools? I already downloaded the big toolkit from ADC, but have been holding off on getting OS X till I find out if I'll be able to compile my progs..... If there are C compilers, and f2c is pretty solid, I'll order OS X pronto.
Thank you again
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Sep 2000
Status:
Offline
|
|
Originally posted by stardoc:
On this track though, are C compilers then either included in default OS X install, or do you have to install the developer tools? I already downloaded the big toolkit from ADC, but have been holding off on getting OS X till I find out if I'll be able to compile my progs...
The OS X CD doesn't include the C compiler and related tools; you'll need to install the developer tools. If you've already downloaded them (the download is around 70MB) then you're all set.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2000
Status:
Offline
|
|
Hi,
I've used f2c to compile Octave (a Matlab like environment for numerical analysis, http://www.che.wisc.edu/octave) which has large chunks of Fortran code. Never choked once... (Octave still won't run, but for other reasons;-)
My setup was f2c and the tools nicked of the Darwin1.2 distribution, not the 70Mb dev tools.
/P
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status:
Offline
|
|
If you are doing Fortran development in OSX/Darwin, you really should use g77. I have used it before with PPC Linux, but I have never encountered it on BSD. It shouldn't be hard to find.
------------------
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: May 2000
Location: Still on Earth, prisoner of gravity
Status:
Offline
|
|
Thank you for the f2c info and the suggestion of g77. I hadn't even thought of g77 on OS X. I'll check into it. g77 is what I use under linux so it is particularly lame of me!
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2000
Status:
Offline
|
|
I've used f2c too. It did a good job. You can even read the C code it poops out. I used it on a single file fucntion call. So it was only a simple test of it.
I bet Darwin has an fortran compiler. Hit the Darwin Dev mailing list if you need help.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2000
Status:
Offline
|
|
stardoc: any luck with g77?
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: May 2000
Location: Still on Earth, prisoner of gravity
Status:
Offline
|
|
Hi persquare and absmiths,
I found g77/ecgs/gcc, but I'm a bit confused as to which pieces I need to combine to build a working compiler...any suggestions? In any event, my copy of OS X is now UPS'ing its way to me x-country. Once it gets here I can begin to try to put the pieces together. Hmmm, I suppose I can try under 9.0.4 as well, no reason not to build the compiler under this mac OS first.
Also, I recall now that there is Macf2c which is, I think, a nicer interface to the usual f2c (though I have yet to actually use it). See http://www.alumni.caltech.edu/~igormt/Mac_F2C.html
I can't wait for OSX...
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status:
Offline
|
|
My brother used to use Macf2c and I believe he was very pleased with it. If I recall correctly it worked really well with CodeWarrior.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2000
Location: M�nster, Germany
Status:
Offline
|
|
Has anyone had any luck installing g77? I have installed the apple developer tools and downloaded the source code for g77 seperately, but have no idea how to proceed. I'm a bit of a unix newbie, but I need fortran for some of the research programs I use in the lab.
Thanks in advance for any help,
Cheers,
Rich
|
What? There's an on-
switch on the printer?
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: May 2000
Location: Still on Earth, prisoner of gravity
Status:
Offline
|
|
I've yet to install g77. I got the AD toolkit w/ its cc compiler, but haven't started with fortran yet.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Jul 2000
Location: Salem, MA, USA
Status:
Offline
|
|
FWIW, I've been using Mac F2C with Code Warrior for years, and it has always worked beautifully for me.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2000
Location: M�nster, Germany
Status:
Offline
|
|
It seems that there are many programs like f2c and g77 available for download, but once I have the files I have no idea what to do with them! Isn't there anyone out there who has managed to install this stuff who can publish a how-to tutorial for unix dummies like me?!
Anyone????
Rich
|
What? There's an on-
switch on the printer?
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2000
Location: CA
Status:
Offline
|
|
I'm still desperately waiting for a report of successfully compiled g77 for the public beta. Anyone??
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|