home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Information / fortran-compilers.txt < prev    next >
Internet Message Format  |  1994-03-23  |  15KB

  1. Date: Thu, 5 Nov 92 14:55 WET 
  2. From: "Alun J. Carr" <AJCARR%ccvax.ucd.ie@Forsythe.Stanford.EDU>
  3. Subject: [*] FORTRAN compiler report 
  4.  
  5. Here is the collection of responses I received in response to my
  6. query about the 'best' (most VAX-compatible, fastest) FORTRAN
  7. compiler for the Mac. It looks like the Language Systems
  8. compiler is the most often recommended.
  9.  
  10. Many thanks to all those who responded, especially to those who
  11. I didn't manage to reply to individually.
  12.  
  13. Dr Alun J. Carr
  14. Mechanical Engineering Department
  15. University College Dublin
  16. Belfield
  17. Dublin 4
  18. Ireland
  19.  
  20. Internet: ajcarr@ccvax.ucd.ie
  21. Phone: +353-1-7061989/2693244
  22. Fax: +353-1-7061756/2830534
  23.  
  24. ====== Report Begins ===========================================
  25.  
  26. Date: Sat, 31 Oct 92 20:50:09 CST
  27. From: gray@cmgroup.engr.wisc.edu (Gary L. Gray)
  28. Subject: FORTRAN compilers (A)
  29.  
  30. I have been using Language Systems FORTRAN for almost a year
  31. and I couldn't be happier.  It has a compiler invocation
  32. option called "-vax" which sets up several options that
  33. mimic the VAX environment (it has similar options for Cray
  34. and Microsoft PC FORTRAN).  LS Fortran runs under MPW and is,
  35. as far as I can tell, virtually bug-free.  The compiled code
  36. is VERY fast and the are dozens of compile-time options for
  37. running in the background under System 7.x or MultiFinder,
  38. having a nice Mac interface and many other things.  I also
  39. know that it is compatible with the Daystar PowerCache.  I
  40. believe the educational price is $375 ($595 retail), but that
  41. includes the latest version of MPW and all the manuals for
  42. MPW.
  43.  
  44. I have also used Absoft's version of FORTRAN (both 020 and the
  45. MPW versions) and find the error diagnostics to be much less
  46. satisfactory and the interface to be less easy to use.  The
  47. compiled code runs at about the same speed in the top-of-the-
  48. line Absoft FORTRAN as with LS FORTRAN, but you must get the
  49. most expensive Absoft product.  The technical support is
  50. excellent with both companies, but Language Systems has help
  51. available via Internet both through AppleLink and America
  52. Online (Absoft may also, but I know LS does).
  53.  
  54. Language Systems has also been great about keeping their
  55. products current and compatible.  I think it is the way to
  56. go.
  57.  
  58. Good luck.
  59.  
  60. Gary L. Gray                *  Engineering Mechanics & Astronautics
  61. gray@cmgroup.engr.wisc.edu  *  University of Wisconsin-Madison
  62.  
  63. ------------------------------
  64.  
  65. Date: Fri, 30 Oct 1992 22:09:05 EST
  66. From: bouldin@anvil.nrl.navy.mil
  67. Subject: Fortran for the Macintosh (A & C)
  68.  
  69. The question of what fortran compiler to use on the Mac has come up again, so
  70. I would like to repeat my strong endorsement of the Language Systems Fortran
  71. that runs under MPW. Bug free, fast compiles, compact code, fast execution,
  72. good debugging, full toolbox support, good tech support, full VAX extension
  73. support, I *love* it.
  74.  
  75. The worst thing I can say about it is that you have to run MPW, which is Unix
  76. in hiding on the Mac. It is a powerful environment, but really confusing and
  77. needlessly complex at times. For large projects, though, which is what old
  78. fortran codes tend to be, it is quite a powerful environment. I maintain and
  79. use 50,000+ lines of fortran code that formerly ran on VAX and PDP/11, and the
  80. conversion wasn't too arduous.
  81.  
  82. Equal time for opposing views: Absoft also sells a fortran for MPW. It may
  83. be a little faster on execution, though I doubt it for anything but
  84. benchmarks.
  85. They may also be a better choice if you will later move to Unix or elsewhere,
  86. since they are a multi-platform fortran; LSF is only Mac.
  87.  
  88. Finally, you might consider useing the F2C translator, if you really like C.
  89. I don't and I am also not aware of an implementation of F2C for the Mac.
  90. Anyone know??
  91.  
  92. ------------------------------
  93.  
  94. Date: Sat, 31 Oct 92 11:00 CST
  95. From: "randy k. hayashi" <RHAYASHI@bert.chem.wisc.edu>
  96. Subject: fortran stuff
  97.  
  98. Date: Fri, 10 Apr 92 13:04 N
  99. From: <HEWAT%FRILL52.BITNET@Forsythe.Stanford.EDU> (HEWAT@FRILL.BITNET FAX FRANC
  100.    E[33] 76-48-39...)
  101. Subject: Best FORTRAN compiler for Mac (answer to recent questions)
  102.  
  103. Distribution-File:
  104.         info-mac@sumex-aim.stanford.edu
  105.  
  106. >Recently someone asked about existing FORTRAN compilers for the Mac.
  107. >I do not recall seeing any replies written to the digest.  Is there
  108. >such a compiler, or at least a good FORTRAN code editor available.
  109.  
  110. I have used various versions of 3 different compilers: Language Systems,
  111. Absoft and MicroSoft (its OK, the later was really written by Absoft, and
  112. Absoft still market an updated version). Each has its advantages.
  113.  
  114. 1) MacFortran 2.1 (MS-absoft) has a debugger built in, that allows you to
  115. step through the code, display the contents of variables etc. (cf The
  116. advantages of THINK Pascal over MPW Pascal).  However it has a non-standard
  117. way of accessing the Mac tool box, and it is getting rather old, and not
  118. a high priority with absoft for updates.  Even so, it produces fast code
  119. that even runs under system 7 and the new Macs including the Quadra !
  120. (amazing !) It can compile for non-fpu Macs. And it is less expensive than
  121. the others.
  122.  
  123. 2) MacFortan-II (absoft).  Completely different beast. Produces the fastest
  124. code, especially for the Quadra, many Fortran-90 extensions, compatible with
  125. most Vax and IBM extensions, source compatible with other absoft compilers
  126. for a wide range of workstations, uses Fortran-90/Pascal structures etc.
  127. A professional compiler, but not completely happy with old spaghetti type
  128. code produced by amatures.  No in-built debugger, runs under MPW only, and
  129. only on fpu equiped Macs. Produces code only for fpu-Macs. Standard Pascal
  130. type toolbox calls, and elementary Mac interface (menus, windows) produced
  131. automatically if required.
  132.  
  133. 3) Language Systems. Code almost as fast as MacFortran-II, not quite as fast
  134. for the Quadra, but maybe faster at compiling.  Fewer options and easier to
  135. use. Produces slightly better automatic Mac interface. Again an MPW compiler
  136. using Fortran-90/Pascal structures, making tool box calling as easy as from
  137. Pascal. No in-built debugger. Produces code for non-fpu Macs as well as for
  138. fpu. Compatible with most Vax and IBM extensions.
  139.  
  140. CONCLUSION: It depends on what you want and who you are. For amatures developing
  141. programs without a Mac interface, Macfortran 2.1 is fine.  If you want the
  142. fastest code, especially on the Quadra, and you don't care about lower class
  143. Macs without fpu, you will upgrade to MacFortran-II.  If the difference
  144. between 1.7 megaflops and 1.3 on a Quadra is not important, you will go for
  145. Language Systems.  Modern Fortran is still the way to go for numeric
  146. calculation, but you may want to write the Mac interface in THINK Pascal,
  147. (a really friendly engine) avoiding their extensions so that it will also
  148. compile with MPW-Pascal, in which case you can easily link in the Fortran
  149. routines for number crunching.
  150.  
  151. Alan Hewat, ILL Grenoble, France (email Hewat@FRILL.bitnet)
  152.  
  153. ------------------------------
  154.  
  155. Date: 12 Apr 92 19:07:00 EDT
  156. From: "Charles E. Bouldin" <bouldin@sed.eeel.nist.gov>
  157. Subject: Fortran Compiler Opinion
  158.  
  159. Since there have been several requests for info about fortran compilers:
  160. I highly recommend Language Systems Fortran. This excellent compiler is
  161. almost totally VAX compatible, bug free, compiles fast, and produces
  162. code that executes quickly. Using it, I have freed myself from relying
  163. on an ancient PDP-11 for data collection and from a (almost as ancient)
  164. VAX for data analysis. Something like 60,000 lines of PDP and VAX fortran
  165. was entirely moved over to the Mac using the Lang. Sys. fortran.
  166.  
  167. I concur that the Absoft MPW fortran is slightly better for 040 machines, but
  168. the Lang. Systems is faster (in my tests) on real code on my 030 machines
  169. than Absoft is. Absoft does win the standard benchmarks: Sieve and Whetstone,
  170. but loses on my "real world" test cases. Absoft also takes a *lot* longer to
  171. compile than LSF. I also find the LSF much simpler to use. The only case where
  172. Absoft is substantially faster than LSF is code that has double precision
  173. complex arithmetic. For those of you who are really committed to fortran,
  174. there is an add-on product called AppMaker (similar to Prototyper) that will
  175. let you do point-and-click design of an application shell and then generate
  176. the fortran source for it. Then add the numeric code as subroutines tied to
  177. your menus and you have a 100% fortran program with a Mac interface.
  178.  
  179. I strongly discourage any use of MacFortran/020; that compiler is LOADED WITH
  180. BUGS!! Some of the bugs produce code that executes INCORRECTLY!!! Avoid it.
  181.  
  182. LSF is at (703) 478-0781. I *do* beta test for them, but they don't pay me
  183. (too bad!); I just really like the product
  184.  
  185. ------------------------------
  186.  
  187. Date: 1 November 1992 16:57:41 CST
  188. From: Stephen Kawalko <U40857@UICVM.BITNET>
  189. Subject: RE: FORTRAN compilers for the Mac (Q)
  190.  
  191. I don't want to start a flame war but there are a significant number
  192. of scientific programmers using Fortran. Most of the major numerical
  193. libraries LAPACK, IMSL, NAG, etc. are still written in Fortran. More
  194. important is the fact that on most vector-based high performance
  195. computers (e.g. Cray Y-MP) Fortran compilers do a better job of
  196. vectorizing code than a C compiler.
  197.  
  198. But that is not what you wanted. Language Systems produces a MPW-based
  199. Fortran compiler. It was recommended  to me when I was looking for a
  200. Fortran compiler. However, I never did buy it due to a lack of
  201. sufficient funds.
  202.  
  203.   Language Systems Corp.
  204.   441 Carlisle Drive
  205.   Herndon, VA 22070
  206.  
  207.   phone: 703-478-0181
  208.     fax: 703-689-9593
  209.  
  210.   price: $495 for Fortran compiler and MPW
  211.          $400 for Fortran compiler (without MPW)
  212.  
  213. Stephen Kawalko (u40857@uicvm.cc.uic.edu)
  214.  
  215. ------------------------------
  216.  
  217. Date: Mon,  2 Nov 1992 14:25:20 UTC+0100
  218. From: Javier Modrego <modrego@cc.unizar.es>
  219. Subject: Fortran for Mac (A)
  220.  
  221. I have been using Language System Fortran only for short time, but
  222. I think it is a very good choice. Porting Fortran programs from
  223. Vax is very straightforward, you can have your program running almost
  224. inmediatelly with minor modifications. It has an open(n,file=*) option
  225. which brings the standard dialog box to the screen allowing you
  226. to connect any mac file to the n fortran unit. Just modifying the
  227. open sentences in that way you can use almost any vax fortran source
  228. without further changes. The compiler understands most vax-fortran extensions
  229. although it ignores some of them. Of course, if you want to build a complete
  230. mac application things are more complicated.
  231. It works inside MPW, the problem with
  232. that is that MPW is a complex system (very UNIX-like). The good point is that
  233. you can easily link the object files from different languages. This allow you
  234. to write your numerical routines in fortran and you mac-interface routines
  235. in mpw-c or pascal. You can also use LS-Fortran to access the Mac-OS routines
  236. because the compiler comes with all the libraries you need so you can write
  237. a complete mac application using just LS-Fortran
  238. The academic price is $375, including MPW and its set of manuals. The manual
  239. for the compiler itself is very good, form my point of view.
  240. If you have already MPW the price must lower.
  241.  
  242.         Javier Modrego
  243.         University of Zaragoza
  244.         Spain
  245.  
  246. ------------------------------
  247.  
  248. Date: Wed, 4 Nov 92 04:52:04 CST
  249. From: gray@cmgroup.engr.wisc.edu (Gary L. Gray)
  250. Subject: f2c for Think C on the Mac
  251.  
  252. After a little digging I was able to find where I obtained f2c.
  253. Just ftp to:
  254.  
  255.            elpp1.epfl.ch
  256.  
  257. and the rest should be pretty clear.
  258.  
  259. It looks like they have put a newer version than the one I
  260. previously had (the current version appears to be dated May
  261. 1992).  It is 797767 bytes in a file called f2c_5_92.cpt_hqx.
  262.  
  263. Good luck.
  264.  
  265. Gary L. Gray                *  Engineering Mechanics & Astronautics
  266. gray@cmgroup.engr.wisc.edu  *  University of Wisconsin-Madison
  267.  
  268. ------------------------------
  269.  
  270. Date: Mon, 2 Nov 92 11:57 MET
  271. From: KEES.RAPPOLDT@IB.AGRO.NL
  272. Subject: Fortran compiler question
  273.  
  274.  Hallo Ajun Carr,
  275.  
  276. Some experience from me, a physicist working in soil physics with
  277. physical and biological models from agriculture and biology. During
  278. the last years I have used The Absoft compiler on the Mac. In short:
  279. don't buy it. The Absoft compiler is fast ... and byggy. It works
  280. for perfect FORTRAN programs, but even simple syntactical errors tend
  281. to lead to curropt code and a hanging machine. So, although I am
  282. good in Fortran, I sometimes needed the VAX compiler or the Microsoft
  283. Fortran compiler on a DOS machine to get my code right.
  284.  
  285. Recently I decided to finish this story and to buy the MPW Fortran
  286. compiler from Language systems, regularly advertised in MacWorld.
  287. After a little getting used to MPW, I compiled about 10000 lines of
  288. code in standard Fortran-77 without a single problem leading to a
  289. working program. Moreover, there are a lot of options build in,
  290. VAX fortran extensions, CRAY fortran extensions !! So when you get
  291. programs from other people, usually NOT free from language extensions,
  292. you will usually be able to compile woth the LS compiler.
  293.  
  294. The LS compiler generates a window for the application that can be
  295. left open in the background without anything to arrange for it in
  296. the Fortran code. After years with the Absoft thing this was nice to
  297. see.
  298.  
  299. A final word about 'C'. There is no doubt this is the best choice for
  300. everthing that has to do with the machine and the operating system.
  301. Scientist, however, have to survive machines and operating systems
  302. and need a perfectly standardized language which runs flawlessly on
  303. different platforms. Fancy and machine dependent user interfaces
  304. have to be written ABOVE models and not IN models. Large programs
  305. which model natural systems should be 100% (and not 99%) machine
  306. independent. I admit, this could probably be achieved with C as well,
  307. but who will translate and test the huge base of existing code ?
  308.  
  309. An advise on Fortran on the MAC: many Fortran users work on VAX and
  310. PC with the VAX Fortran and the Microsoft compiler. These compilers
  311. generate code with so-called static memory use. Variables are
  312. initialized zero and retain there value between successive
  313. subroutine calls. This, however is NOT standard Fortran. With the
  314. absoft compiler you need to add a SAVE statement in each routine
  315. in order to achieve static memory use and you have to check
  316. carefully for initialization errors in the program. The MPW compiler
  317. can be instructed to do so without SAVE's and I think can also be
  318. instructed to set everything at 0 initially.
  319.  
  320. say that the MPW-Language Systems compiler is much better than
  321. Absoft's product.
  322.  
  323. Good luck with the chrystals,
  324. Kees Rappoldt, Groningen, The Netherlands.
  325. RAPPOLDT@IB.AGRO.NL
  326.  
  327. ------------------------------
  328.  
  329. Date: Wed, 4 Nov 92 23:37:32 CST
  330. From: GA0095@SIUCVMB.SIU.EDU
  331. Subject: RE: Fortran compilers for Mac
  332.  
  333. I don't know whether you got any reponses by now or not (I am a bit behind
  334. with reading Info-Mac), but here it goes just in case.  The choice is really
  335. limited to Language Systems Fortran and MacFortran II from Absoft.  Both run
  336. under MPW and produce a similar performance on average.  LS Fortran seems to
  337. be a bit more friendly to many people, but Absoft's product can be tweaked
  338. more for faster calcs.  Absoft's product requires FPU, though.  LS Fortran
  339. is, at least was last time I checked, somewhat cheaper and they offer edu
  340. discounts.                     Robert  ga0095@siucvmb.siu.edu
  341.  
  342. ====== Report Ends =============================================
  343.  
  344.  
  345.