Date: Wed, 4 Mar 1998 04:10:27 -0500 (EST) Message-Id: <199803040910.EAA08076@p2.acadia.net> To: Bum-Seok Hyun Subject: Re: [Q]Computing speed in C++ Cc: djgpp AT delorie DOT com References: <34FCB769 DOT 42BEF1A8 AT gong DOT snu DOT ac DOT kr> in-reply-to: <34FCB769.42BEF1A8@gong.snu.ac.kr> From: swarnerx3 AT acadia DOT net (Scott Warner) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Precedence: bulk Just out of curiosity, what's the code? Did you compile and link C code as though it were C++? There isn't that much difference between the two afaik, but individual linking libraries could be different. > 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 > > > >