From: iglesias@draco.acs.uci.edu (Mike Iglesias)
Subject: Re: Sun C code compiled on OSF/1??
Date: 1995/07/20 [thread overview]
Message-ID: <3umk8c$9qr@news.service.uci.edu> (raw)
In-Reply-To: 3umh4p$amh@agate.berkeley.edu
In article <3umh4p$amh@agate.berkeley.edu>,
Andy C. Hsia <hsiacc@prometheus.ME.Berkeley.EDU> wrote:
>In light of the recent incident regarding reading README files first,
>etc, let me say that I have read all the documentation that came with the
>code, I've tried many minor modifications to the code, and I'm not an
>experienced cc user. If I had to guess, I'd say that simply commenting
>out the offending lines caused the variables to be defined as the wrong
>type, therefore doesn't solve my problem. My question is why doesn't the
>successfully compiled program run properly and what should I look for in
>fixing it? Thanks
There are many things that can cause problems, the two most common
I've seen are assuming that a pointer or a long is the same size as
an int. Pointers and longs are 64 bits on Alphas, so trying to stuff
either of those into an int is going to cause problems (usually a
segmentation fault). Using "lint -Q" may help here; see the lint man
page for more details.
You could try running the program under dbx, and after you see it looping,
hit ^C and type "where". This will show you the calling stack so you
have an idea which routine the program is currently in.
If you can find someone who knows their way around C and dbx that would
help you find the problem.
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine phone: (714) 824-6926
Office of Academic Computing FAX: (714) 824-2069
next prev parent reply other threads:[~1995-07-20 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-07-20 4:00 Sun C code compiled on OSF/1?? Andy C. Hsia
1995-07-20 4:00 ` Mike Iglesias [this message]
1995-07-21 4:00 ` Mark Charette
1995-07-21 4:00 ` Eric Osborne
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