delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/04/01:30:54

From: Bum-Seok Hyun <dominic AT gong DOT snu DOT ac DOT kr>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019