Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!rpi!sigma From: sigma@pawl.rpi.edu (Kevin J Martin) Newsgroups: comp.os.msdos.programmer Subject: Re: Huge arrays in Turbo C++ Keywords: turbo c++ Message-ID: Date: 14 Sep 90 04:18:27 GMT References: Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 16 ajai@sce.carleton.ca (Ajai Sehgal) writes: >OK, so I can't use faralloc() to allocate extended memory. I found a solution >to my problem of large arrays....with a MINOR (sarcasm) problem. I declared >my arrays as follows: > float huge image[1024][1024] > float huge psf[1024][1024] I don't know what you're getting out of this (ie, why the addresses come out the same), but I'm surprised it compiles. You certainly won't get a 1024x1024 array of floats out of it - 1024x1024 char array would take a megabyte, and even farmalloc() only uses conventional memory! Could we see the original code fragment? -- Kevin Martin ||| sigma@pawl.rpi.edu ||| usergkj1@RPITSMTS.BITNET