From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,11734b1d8c3fcb1c X-Google-Attributes: gid111c93,public From: Robert Harley Subject: Re: A Fortran/C code malloc problem Date: 1999/03/24 Message-ID: #1/1 X-Deja-AN: 458347508 Content-Transfer-Encoding: 8bit References: <7d9vrc$clg$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=iso-8859-1 Organization: I.N.R.I.A Rocquencourt Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha 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.