Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* f77 -S does not produce asembly (.s)
@ 1994-05-17  9:30 Howard B. Robinson
  1994-05-17 16:08 ` John R. Reagan
  1994-05-23 19:57 ` neth
  0 siblings, 2 replies; 3+ messages in thread
From: Howard B. Robinson @ 1994-05-17  9:30 UTC (permalink / raw)


Hi; 
I'm trying to produce an assembly version of my f77 code by
compiling with the -S switch. Unfortunately it doesn't work (no .s file 
is produced).
Here is what happens:

% f77 -extend_source -f77 -Nl40 -Nx300 -O -S -v -c code.f
/usr/lib/cmplrs/fort/decfort -extend_source -f77 -O -o code.o code.f
% 

Has anyone else experienced this problem? Help!!

Thanks,
-Howard-	robinson@math.berkeley.edu

(BTW, i'm using version 3.3 of the DEC Fortran on OSF/1 AXP compiler system.)


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

* Re: f77 -S does not produce asembly (.s)
  1994-05-17  9:30 f77 -S does not produce asembly (.s) Howard B. Robinson
@ 1994-05-17 16:08 ` John R. Reagan
  1994-05-23 19:57 ` neth
  1 sibling, 0 replies; 3+ messages in thread
From: John R. Reagan @ 1994-05-17 16:08 UTC (permalink / raw)



In article <2ra2rm$nmk@agate.berkeley.edu>, robinson@jaffna.berkeley.edu (Howard B. Robinson) writes...
>I'm trying to produce an assembly version of my f77 code by
>compiling with the -S switch. Unfortunately it doesn't work (no .s file 
>is produced).

On OSF/1, only the system C compiler can generate assembly version
with the -S switch.  The Fortran (and Pascal and cc -migrate etc.) 
compilers use a different compiler technology that produces .o files
directly without the need of an assembler.  If you just want to
look at the generated code with f77, use -V -machine_code.
Also, check out the dis command.

---
John Reagan
Digital Equipment Corporation
reagan@hiyall.enet.dec.com
Disclaimer:  The opinions and statements expressed by me are not
             necessarily those of Digital Equipment Corporation.
---


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

* Re: f77 -S does not produce asembly (.s)
  1994-05-17  9:30 f77 -S does not produce asembly (.s) Howard B. Robinson
  1994-05-17 16:08 ` John R. Reagan
@ 1994-05-23 19:57 ` neth
  1 sibling, 0 replies; 3+ messages in thread
From: neth @ 1994-05-23 19:57 UTC (permalink / raw)



In article <2ra2rm$nmk@agate.berkeley.edu>, robinson@jaffna.berkeley.edu (Howard B. Robinson) writes:
|>Hi; 
|>I'm trying to produce an assembly version of my f77 code by
|>compiling with the -S switch. Unfortunately it doesn't work (no .s file 
|>is produced).
|>Here is what happens:
|>
|>% f77 -extend_source -f77 -Nl40 -Nx300 -O -S -v -c code.f
|>/usr/lib/cmplrs/fort/decfort -extend_source -f77 -O -o code.o code.f

It's not supposed to work.   DEC FORTRAN writes .o files directly; it does
not use as1 to build .o files.    If you want to see what machine instructions
have been generated you can use -V -show code.

Craig 



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

end of thread, other threads:[~1994-05-23 19:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-05-17  9:30 f77 -S does not produce asembly (.s) Howard B. Robinson
1994-05-17 16:08 ` John R. Reagan
1994-05-23 19:57 ` neth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox