| Thread Tools | Search this thread |
|---|
shachris23
| November 24, 2008 3: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. | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 8290 users have contributed to 31236 threads and 99111 posts to date. |
|---|
| In the past 24 hours, we have 7 new thread(s) 20 new posts(s), and 30 new user(s). In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing... Escalated as Please welcome our newest member zq.x |