From: Jim Nance <jlnance@avanticorp.com>
Subject: Re: Alpha gcc
Date: Mon, 2 Dec 1996 14:14:52 -0500 (EST) [thread overview]
Message-ID: <dfb1b87a6397005466b0ee402cf92e83.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.LNX.3.91.961202150024.25169B-100000@alfa.danmar.goldsword.com>
> I was working on a program on an AXP using gcc, I defined a vector
> float dA[NMAX] and NMAX was defined in the header file. I inadvertantly
> ran the index of dA to NMAX + 1 . The program compiled and ran. I took
> the same program and placed it on an intel linux with gcc and I got the
> expected core dump. Why doesn't the above cause a core dump on the AXP? I
> know it is poor programming, but I am curious as to why it works one way
> on one machine but not on the other. Thanks.
You only get a core dump if you happen to access an address that is on a
page that is not mapped into your processes address space. On the intel
dA[NMAX] apparently ends at a page boundary. On the alpha it does not.
There are many reasons this could be true. One is that the alpha has 8K
pages while the intel has 4K pages (does NMAX happen to be 1024?). If you
overrun the address by enough, you will get a core dump.
Jim
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next parent reply other threads:[~1996-12-02 19:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.3.91.961202150024.25169B-100000@alfa.danmar.goldsword.com>
1996-12-02 19:14 ` Jim Nance [this message]
1996-12-03 7:03 ` Alpha gcc Richard Henderson
1996-12-02 18:50 gdb doesn't seem to understand my shared library David Mosberger-Tang
1996-12-02 20:08 ` Alpha gcc D. Steven Daniel
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