tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Gavin Kreuiter <gavin () transactive ! usko ! com>
To: tru64-unix-managers
Subject: Tru64 C optimisation
Date: Fri, 24 Nov 2000 23:36:39 +0000	[thread overview]
Message-ID: <97510863018394.tru64-unix-managers.marc@archive.invalid> (raw)

Hi managers, or, more precisely, C programmers, I guess.

I have a bit of a problem with about 160,000 lines of C code.  When
compiling with standard options (default -O2), a particular input data file
generates "Program terminated with signal 11, Segmentation fault.".  When
explicitly using -O0, the program completes as expected.  I have looked at
the man page for cc options, but the exact optimising rules remain unclear.

My question is three-fold.  Firstly, can anyone point me to documentation
describing the optimising steps of the compiler?  Secondly, does anyone have
any experience in programming constructs that fail when the default
optimisation compiler option is selected, but succeed when no optimisation
is performed?  And, finally, is this a problem with a faulty compiler, or
with bad programming practices that get understandably mangled by the
optimisation step?

I don't think the operating system release is relevant here, but, just in
case, we are running Digital UNIX V4.0D, with the latest 4.0D patches (I
think patch kit #3).

Tia
Gavin Kreuiter

                 reply	other threads:[~2000-11-24 23:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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