A Comparison of Java, C/C++, and Fortran For Numerical Computing

Copyright [©] (1998) by IEEE. Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distrubuted for profit. To copy otherwise, to republish, to post on servers, or to redistribute to lists, requires prior specific permission and/or a fee.

This paper compares the use of three programming languages, Fortran, C/C++, and Java, in a simple numerical computation of the product of two matrices. The goal is to show that, although similar in expressiveness, the performance of the three languages can be vastly different with current implementations. We analyze the causes of these differences and we discuss how state-of-the-art compilation can be used to deliver excellent performance for all three languages.

By: J. E. Moreira, S. P. Midkiff, M. Gupta

Published in: IEEE Antennas and Propagation Magazine, volume 40, (no 5), pages in 1998

Please obtain a copy of this paper from your local library. IBM cannot distribute this paper externally.

Questions about this service can be mailed to reports@us.ibm.com .