From: Bum-Seok Hyun Newsgroups: comp.os.msdos.djgpp Subject: [Q]Computing speed in C++ Date: Wed, 04 Mar 1998 11:07:38 +0900 Organization: Seoul National University, Republic of Korea Lines: 35 Message-ID: <34FCB769.42BEF1A8@gong.snu.ac.kr> NNTP-Posting-Host: davinci3.snu.ac.kr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi!!! I'm not sure that I can write this newsgroup on my problem, but I guess somebody can help me. I'm using DJGPP as C++ compiler on my pc. My research area is CFD and I have done much work using Fortran 77. I can't say I hate Fortran, but I feel like moving to more flexible language. So I made a test for comparing computing time. The result is c code : 21 sec c++ code : 57 sec Fortran77 code : 115 sec The test code is quite simple, consisted of 3 nested "for" loops. I don't understand this situation. I've read manuals and they told me computing time should be at least close between C and C++ Does this mean that C++(or DJGPP) is not suitable for numerical computation? Thanks in advance Bum-Seok Hyun mailto:dominic AT gong DOT snu DOT ac DOT kr