Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DEC AXP OSF/1 C compilers
@ 1993-04-20 20:11 G.V. Stuart
  1993-04-20 23:42 ` Ajay Shekhawat
  0 siblings, 1 reply; 5+ messages in thread
From: G.V. Stuart @ 1993-04-20 20:11 UTC (permalink / raw)


There seems to be an abundance of C compilers on Alpha AXP OSF/1 systems:
	cc
	c89
	gcc (for those who, unlike me, have got the bloody thing to work)
and then there's the KAP pre-processor too.

Has anyone any feel/figures for the performance of the different options?
It would be useful to know if it's worth splashing out on, for instance,
the KAP processor.

Greg

P.S. This is posted to both comp.sys.dec and comp.unix.osf.osf1 so on the one
hand I'll annoy the VMS addicts, and on the other I'll annoy the `pure' OSF
people.  Which IS the more appropriate place for Alpha AXP s/w questions?
--
Greg Stuart				  Cambridge University Engineering Dept.
gvs@eng.cam.ac.uk			  Trumpington Street
"Fourth day, five day marathon."	  Cambridge, England	CB2 1PZ
"We're moving like a parallelogram" --Lemmy


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

* Re: DEC AXP OSF/1 C compilers
  1993-04-20 20:11 DEC AXP OSF/1 C compilers G.V. Stuart
@ 1993-04-20 23:42 ` Ajay Shekhawat
  1993-04-21  8:33   ` James Bonfield
  0 siblings, 1 reply; 5+ messages in thread
From: Ajay Shekhawat @ 1993-04-20 23:42 UTC (permalink / raw)


gvs@eng.cam.ac.uk (G.V. Stuart) writes:
: There seems to be an abundance of C compilers on Alpha AXP OSF/1 systems:
: 	cc
: 	c89
: 	gcc (for those who, unlike me, have got the bloody thing to work)
: and then there's the KAP pre-processor too.
: 
: Has anyone any feel/figures for the performance of the different options?
: It would be useful to know if it's worth splashing out on, for instance,
: the KAP processor.
: [... deleted ...]

On a similar note: Why does the linker give a seg. fault when using the
 -O4 or -O3 options?  This is with the "cc" compiler, on a 3000/500. 


Ajay

--
ajay@cs.Buffalo.EDU


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

* Re: DEC AXP OSF/1 C compilers
  1993-04-20 23:42 ` Ajay Shekhawat
@ 1993-04-21  8:33   ` James Bonfield
  1993-04-21 14:31     ` Ajay Shekhawat
  0 siblings, 1 reply; 5+ messages in thread
From: James Bonfield @ 1993-04-21  8:33 UTC (permalink / raw)


In <C5t36n.Lyu@acsu.buffalo.edu> ajay@cs.buffalo.edu (Ajay Shekhawat) writes:
> On a similar note: Why does the linker give a seg. fault when using the
>  -O4 or -O3 options?  This is with the "cc" compiler, on a 3000/500. 

This is mentioned in the release notes. If you compile a static binary
(-non_shared) instead then you do not get this problem. Alternatively, use one
of the other compilers if available. Also, for those who cannot get gcc
working, there appears to be a fully functional one on the Alpha Freeware CD.

	James
-- 
James Bonfield (jkb@mrc-lmba.cam.ac.uk / rince@dcs.warwick.ac.uk)
Medical Research Council Laboratory of Molecular Biology, Hills Road,
Cambridge, CB2 2QH, England. Tel: 0223 402499   Fax: 0223 412282


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

* Re: DEC AXP OSF/1 C compilers
  1993-04-21  8:33   ` James Bonfield
@ 1993-04-21 14:31     ` Ajay Shekhawat
  1993-04-23 21:54       ` Mark Charette
  0 siblings, 1 reply; 5+ messages in thread
From: Ajay Shekhawat @ 1993-04-21 14:31 UTC (permalink / raw)


rince@dcs.warwick.ac.uk (James Bonfield) writes:
: In <C5t36n.Lyu@acsu.buffalo.edu> ajay@cs.buffalo.edu (Ajay Shekhawat) writes:
: > On a similar note: Why does the linker give a seg. fault when using the
: >  -O4 or -O3 options?  This is with the "cc" compiler, on a 3000/500. 
: 
: This is mentioned in the release notes. If you compile a static binary
: (-non_shared) instead then you do not get this problem.Alternatively, use one
: of the other compilers if available. Also, for those who cannot get gcc
: working, there appears to be a fully functional one on the Alpha Freeware CD.
: 
: 	James
: -- 
: James Bonfield (jkb@mrc-lmba.cam.ac.uk / rince@dcs.warwick.ac.uk)
: Medical Research Council Laboratory of Molecular Biology, Hills Road,
: Cambridge, CB2 2QH, England. Tel: 0223 402499   Fax: 0223 412282

Doesn't work. This time I tried the -non_shared option, and got this:
	
	Fatal error in: /usr/lib/cmplrs/cc/umerge Segmentation fault

This is a loaner machine, so I don't have access to any release notes.

The only other compiler around is gcc; but how good is it's optimization?

Ajay

--
ajay@cs.Buffalo.EDU


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

* Re: DEC AXP OSF/1 C compilers
  1993-04-21 14:31     ` Ajay Shekhawat
@ 1993-04-23 21:54       ` Mark Charette
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Charette @ 1993-04-23 21:54 UTC (permalink / raw)


Ajay Shekhawat (ajay@cs.buffalo.edu) wrote:
: : > On a similar note: Why does the linker give a seg. fault when using the
: : >  -O4 or -O3 options?  This is with the "cc" compiler, on a 3000/500. 
: : 
: 	
: 	Fatal error in: /usr/lib/cmplrs/cc/umerge Segmentation fault

Try compiling using the -c option and use ld with a -O of less than 2
for the final link. The -O option is also passed to ld, which will seg fault
on large programs if it is larger that -O1. The difference in speed for
the executable using -O1 instead of -O2 ends up being negligible. The bug 
in ld has been reported to DEC engineering. 
--
Mark Charette              |Save plants and animals. Eat a vegetarian 
Fisher Engineering Systems |today.
charette@ultoe.det.dec.com |
(313) 280-0703             | 


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

end of thread, other threads:[~1993-04-23 21:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-04-20 20:11 DEC AXP OSF/1 C compilers G.V. Stuart
1993-04-20 23:42 ` Ajay Shekhawat
1993-04-21  8:33   ` James Bonfield
1993-04-21 14:31     ` Ajay Shekhawat
1993-04-23 21:54       ` Mark Charette

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