delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/04/04:10:48

Date: Wed, 4 Mar 1998 04:10:27 -0500 (EST)
Message-Id: <199803040910.EAA08076@p2.acadia.net>
To: Bum-Seok Hyun <dominic AT gong DOT snu DOT ac DOT kr>
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

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
>
>
>
>

- Raw text -


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