| Thread Tools | Search this thread |
|---|
shachris23
| November 24, 2008 2:33 PM PST C function vs Fortran function performance | ||||
Hi, Not trying to start a language war or anything, but I work in a real-time image processing industry where performance is of utmost concern. Our initial algorithms were written in Fortran back in the 70's/80's, and eventually translated to C. Right now our application uses C++ for infrastructure-related stuff, and C for the algorithms for maximum performance. The C algorithm functions are parallelized using master-worker design pattern. We use Intel compiler. Our platform is Windows x64. I have never coded in Fortran but heard that it's great for scientific computing, as well as unmatched (?) performance by other language. So...here's the question: assuming an algorithm is coded efficiently in C and Fortran (i.e. they both describe the same algorithm), would code produced in Fortran be significantly faster than the C counterpart? Assuming that we use Intel compiler for both C and Fortran. Because if Fortran really is faster, I'm thinking about making an object code out of Fortran and call it from our C++ infrastructure instead. Thanks!! S. | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 6668 users have contributed to 28284 threads and 87462 posts to date. |
|---|
| In the past 24 hours, we have 5 new thread(s) 34 new posts(s), and 46 new user(s). In the past 3 days, the most popular thread for everyone has been Fortran and Matlab The most posts were made to Larger Test Data The post with the most views is Quoting - nabeels Hello e Please welcome our newest member karolbe |