python小菜 2008-09-28 16:02 采纳率: 66.7%
浏览 531

对于繁重的计算,Fortran 比 c 更容易优化吗?

From time to time I read that Fortran is or can be faster then C for heavy calculations. Is that really true? I must admit that I hardly know Fortran, but the Fortran code I have seen so far did not show that the language has features that C doesn't have.

If it is true, please tell me why. Please don't tell me what languages or libs are good for number crunching, I don't intend to write an app or lib to do that, I'm just curious.

转载于:https://stackoverflow.com/questions/146159/is-fortran-easier-to-optimize-than-c-for-heavy-calculations

  • 写回答

22条回答 默认 最新

  • 斗士狗 2008-09-28 16:09
    关注

    Any speed differences between Fortran and C will be more a function of compiler optimizations and the underlying math library used by the particular compiler. There is nothing intrinsic to Fortran that would make it faster than C.

    Anyway, a good programmer can write Fortran in any language.

    评论

报告相同问题?