public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* egcs and g77
@ 1998-07-03 14:48 Juan Casero
  1998-07-04  2:00 ` Toon Moene
  1998-07-05 15:40 ` Martin von Loewis
  0 siblings, 2 replies; 13+ messages in thread
From: Juan Casero @ 1998-07-03 14:48 UTC (permalink / raw)
  To: egcs

Greetings everyone -

I have been using egcs for some time now on my RedHat 5.0 Linux box with
no problems.  The compiler seems to generate very efficient and stable
code.  I do not wish to start a debate about the merits of g77 or f2c
but my past experience with g77 has been that it often either fails to
compile standard fortran 77 code or it generates the wrong code when
compiled with optimizations turned on.  I plan to write some Fortran 77
code and I expect I will need to debug it with DDD.  Therefore I need to
use g77 to compile my code but I hesitate  to use it because of my
previous experience with the front end.  Has g77 received the same
attention and improvements as gcc in the egcs development project?  Can
I trust g77 to reliably generate the proper code with optimizations
turned on?  As I said I really don't want to start a debate so please a
simple yae or nae ( feel free to elaborate as long as it doesn't become
argumentative) will suffice.


Thank You.

--
Juan Casero
email:  casero@beowulf.cox.miami.edu
   __   _
  / /  (_)__  __ ____  __
 / /__/ / _ \/ // /\ \/ /  . . .  t h e   c h o i c e   o f   a
/____/_/_//_/\_,_/ /_/\_\              G N U   g e n e r a t i o n . . .




^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: egcs and g77
@ 1998-07-05 12:23 N8TM
  1998-07-06  8:09 ` Craig Burley
  0 siblings, 1 reply; 13+ messages in thread
From: N8TM @ 1998-07-05 12:23 UTC (permalink / raw)
  To: toon; +Cc: casero, egcs

In a message dated 7/4/98 4:54:34 AM Pacific Daylight Time,
toon@moene.indiv.nluug.nl writes:

> >  Can I trust g77 to reliably generate the proper code with
>  >  optimizations turned on?  As I said I really don't want
>  >  to start a debate so please a simple yae or nae ... will
>  >  suffice.

Well, no one can give a simple answer; for one thing, bugs in codes often show
up when optimization is on.  Many such problems are results of incorrect
initialization, or other non-standard stuff which worked on many compilers
over the years.  The problem is not just with g77; commercial f90 compilers
have dropped backwards compatibility with non-standard ibm360 fortran.  I wish
g77 had more complete diagnostics for some of these uglies, but wishing also
obligates us to document where warnings are needed but not yet available.  One
area where better diagnostics would help is in the flagging of improper or
unreliable use of undeclared character strings.

I maintain one of those fortran codes which dates back over the years, and I
have fixed enough bugs so that g77 is the most modern compiler which runs it
totally cleanly, no matter which compiler switches are on, and g77 is the only
compiler which runs the same across architectures.

g77 has options which make all variables static and initially zero, and all
local variables are visible in debug even with optimization.   Use these
options when needed.  There is no automatic switching of uninitialized
variables to static.  Such features of other compilers, while they often
eliminate bugs, do cause performance problems, and they don't cure the non-
portability.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~1998-07-08  7:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-03 14:48 egcs and g77 Juan Casero
1998-07-04  2:00 ` Toon Moene
1998-07-05 11:00   ` Dave Love
1998-07-05 11:55     ` Juan Casero
1998-07-06 14:48       ` Toon Moene
1998-07-06 22:11         ` Should web host docs? Was: " Robert Lipe
1998-07-07 12:51           ` Dave Love
1998-07-08  7:59             ` Craig Burley
1998-07-06 14:48       ` Craig Burley
1998-07-06  4:08     ` Dave Love
1998-07-05 15:40 ` Martin von Loewis
1998-07-05 12:23 N8TM
1998-07-06  8:09 ` Craig Burley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).