C function vs Fortran function performance

shachris23
Total Points:
435
Status Points:
0
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

8491 users have contributed to 31629 threads and 100764 posts to date.
In the past 24 hours, we have 32 new thread(s) 141 new posts(s), and 200 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to Crash when loading skeleton The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member shadowwolf99