🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2221

Re: Huge arrays in Turbo C++

#2221
From: Kevin J Martin
Date: Fri, 14 Sep 1990 04:18
16 lines
1127 bytes
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
Technical Details
Message-ID: <VXC%X%#@rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!rpi!sigma
References: <ajai.653150092@talos.sce.carleton.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <VXC%X%#@rpi.edu>
Date: 14 Sep 90 04:18:27 GMT
References: <ajai.653150092@talos.sce.carleton.ca>
Organization: Rensselaer Polytechnic Institute, Troy NY
Lines: 16