From: Robert Harley <harley@corton.inria.fr>
Subject: Re: A Fortran/C code malloc problem
Date: 1999/03/24 [thread overview]
Message-ID: <rz790cndtd7.fsf@corton.inria.fr> (raw)
In-Reply-To: 7d9vrc$clg$1@nnrp1.dejanews.com
b_duke@my-dejanews.com writes:
>[...]
> The problem is that the number returned by malloc is far too
> large giving an offset from X(1) that is far too large. It is
> 182 Gb and can not be converted to an INTEGER*4
Well yes. Alpha Linux is a 64-bit O.S. so there is no reason
whatsoever for the difference between two pointers to fit in 32 bits.
> required for the rest of the code to access the memory.
If the rest of the code requires the difference to fit in 32 bits,
then it is broken.
> Can anyone explain what is going on here? Have I blundered
> with the code?
No, you haven't.
> Can you reproduce this on other alpha linux systems?
I haven't tried but I'm sure they're all the same.
Bye,
Rob.
next prev parent reply other threads:[~1999-03-24 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-24 5:00 A Fortran/C code malloc problem b_duke
1999-03-24 5:00 ` Robert Harley [this message]
1999-03-25 5:00 ` b_duke
1999-03-25 5:00 ` Greg Lindahl
1999-03-25 5:00 ` Larry Zimmerman
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