delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/02/12:07:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <377CF129.EE91CAFF@kiwi.iamp.tohoku.ac.jp>
Date: Fri, 02 Jul 1999 18:04:41 +0000
From: Samy Alex ZAIMI <zaimi AT kiwi DOT iamp DOT tohoku DOT ac DOT jp>
Reply-To: zaimi AT kiwi DOT iamp DOT tohoku DOT ac DOT jp
Organization: Institute for Advanced Materials Processing - Tohoku University
X-Mailer: Mozilla 4.6 [fr] (Win95; I)
X-Accept-Language: fr,en,ja
Mime-Version: 1.0
To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: [G77] mingw32 vs. cygwin32

Hello everyone,

I have tested the following little program on two
versions of the G77 compiler provided by Mumit
Khan. They both are described as being "g77
version egcs-2.91.66 19990314 (egcs-1.1.2
version)", but they differ in the following way :
1. one is taylored to cygwin32 environment (uses
cygwin1.dll),
2. the other one is taylored to mingw32
environment, and is rather standalone.

So here is the little program :
      program essai
      aa=0.
      bb=1/aa ! hey, we divide by zero here
      write(6,*) bb
      end

Compilation is ok for both compilers (I used a
simple "g77 -o essai essai.f", without any
extra-flag).
At execution time, the program compiled with g77
for cygwin32 outputs :
        Inf
and the one compiled with g77 for mingw32 says :
        1.#INF

Well, those values seem to be different, and the
consequences are drammatically different also.
First of all, I need in priority the version for
mingw32, because my programs run much faster with
it, and they are "cygwin1.dll free".
Unfortunately, I need also a good handling of
infinite values, because I do several convergence
tests, and my programs stop too early (sometimes
at the very first iteration !) if they were
compiled with g77_mingw32. With the version
compiled with g77_cygwin32, if a division by zero
occurs, all keeps fine : the program can continue
and switch to the next iteration, until reasonable
values are obtained. This scheme doesn't work with
the version compiled with g77_mingw32, and that
makes me very sad.
So, what shall I do ?

Many thanks in advance.
Regards,
--
Dr.-Ing. Sami Alex ZAIMI
Tohoku University - Sendai (Japan)




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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