• Advertisement
Sign in to follow this  

Fortran

This topic is 4418 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm wondering, for caculations, is it better to use fortran? For formulas that is... I know what the name stands for but im asking if its faster then C or C++?

Share this post


Link to post
Share on other sites
Advertisement
Fortran has some semantics that allow for more aggressive compiler optimizations than C++ and C89. In theory, C99 can be used to take advantage of some of the same benefits in pointer aliasing, however, C99 compilers still don't seem quite as mature as Fortran compilers. On the plus side, most Fortran libraries are link compatible with C/C++ so you don't need to actually program in Fortran to take advatantage of Fortran compile number crunching libraries.

Share this post


Link to post
Share on other sites
Also, in C++ it is possible to utilize template metamagic to achieve similar speed-ups, for example, take a look at the Blitz++ numerics library.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement