* Tru64 C optimisation
@ 2000-11-24 23:36 Gavin Kreuiter
0 siblings, 0 replies; only message in thread
From: Gavin Kreuiter @ 2000-11-24 23:36 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-11-24 23:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-24 23:36 Tru64 C optimisation Gavin Kreuiter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox