Thread View: net.lang.f77
1 messages
1 total messages
Started by Ken Winston
Wed, 05 Mar 1986 12:13
Errors in f77 -O option
Author: Ken Winston
Date: Wed, 05 Mar 1986 12:13
Date: Wed, 05 Mar 1986 12:13
29 lines
1540 bytes
1540 bytes
It is well know that there are bugs in the optimizer in the f77
compiler (ours is on MicroVax II ULTRIX). I have seen various scary
warnings about these errors, but no actual list. I was beginning to
think the whole thing was overblown when I ran into one the hard way
(I only lost a day tracking it down).
Does anybody have a list of the -O problems on f77? Which ones (if any)
are fixed in the new version of f77?
Here is a program that acts differently when compiled with/without -O.
The "0." gets a little too optimized in the write statement, and
disappears altogether.
dimension array(20)
open (1,file='binar',access='direct',recl=80)
do 10 i=1,10
10 array(i)=i
write(1,rec=1) (array(i),0.,i=1,10)
close (1)
open (1,file='binar',access='direct',recl=80)
read(1,rec=1) array
write(6,*) array
stop
end
Ken Winston Winston Capital Systems, Inc.
...{cmcl2,rna,cubsvax}!wealth!ken 250 West 75th Street, Suite 3A
+1-212-382-3450 New York, New York 10023-1757
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads