Article View: net.micro.mac
Article #1444Float question in MegamaxC
From: hako
Date: Fri, 17 May 1985 13:28
Date: Fri, 17 May 1985 13:28
17 lines
1056 bytes
1056 bytes
Hi,
I have a question about the MegamaxC compiler. I have a little
program (listed below) just to run 5000 multiplies for timing.
It took 10sec! whereas a friend of mine with the Absoft Fortran
does 5000 multiplies in 1sec. What am I doing wrong?
#define COUNT 5000
#include "fmath.h" /* probably not neccessary */
main()
{
double a=3.14159, b = 2.78474, c;
register int i;
for (i=0; i<COUNT; i++)
c = a*b;
}
Technical Details
Message-ID:
<16500023@ur-univax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!rochester!ur-univax!hakoShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: nyu notesfiles V1.1 4/1/84; site ur-univax.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!rochester!ur-univax!hako From: hako@ur-univax.UUCP Newsgroups: net.micro.mac Subject: Float question in MegamaxC Message-ID: <16500023@ur-univax.UUCP> Date: Fri, 17-May-85 09:28:00 EDT Article-I.D.: ur-univa.16500023 Posted: Fri May 17 09:28:00 1985 Date-Received: Sun, 19-May-85 08:32:18 EDT Organization: University of Rochester: Computing Center Lines: 17 Nf-ID: #N:ur-univax:16500023:000:420 Nf-From: ur-univax!hako May 17 09:28:00 1985