C function vs Fortran function performance

shachris23
Total Points:
425
Status Points:
375
Green Belt
November 25, 2008 10:10 AM PST
Rate
 
#2 Reply to #1
Quoting - g.f.thomas

It's hard to tell a priori. Modern C (as distinct from C++) and Fortran are comparably fast and which you use can be a personal choice unless local policy dictates otherwise. I'm surrounded by C colleagues but I prefer  that all my bugs be of the Fortran type if only because I can detect and swat them more easily. Fortran is simple to learn and you can quickly recode a C algorithm and see which is faster (for that algorithm only and assuming both codes are equally well written). Did you know that Fortran 2003 is interoperable with C?

Gerry

Oh wow..I never knew modern Fortran is interoperable with C. Just now I also looked up about Fortran on Wikipedia and found that the language is going through a lot of change to support parallelism. How great!

Interesting. Thanks for your thoughts.



Intel Software Network Forums Statistics

8292 users have contributed to 31240 threads and 99118 posts to date.
In the past 24 hours, we have 11 new thread(s) 11 new posts(s), and 21 new user(s).

In the past 3 days, the most popular thread for everyone has been huge pages on linux? The most posts were made to Pipeline buffer between stages? The post with the most views is Very amusing...  Escalated as

Please welcome our newest member amirsam7