🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1278

Re: Porting software to the PC, 64K data structure barrier.

#1278
From: Thomas Murphy
Date: Mon, 01 Jul 1991 02:47
19 lines
1468 bytes
In article <1972@contex.contex.com> avinash@felix.contex.com (Avinash Chopde) writes:
>I need to port a program I wrote for UNIX machines onto the IBM PC.
>I have the Turbo C++ compiler, and at first, I just tried to
>recompile all the sources, but the compiler complained about
>a struct being greater than 64K in size!
>Now, I'm sure I'm doing something wrong, surely there must be some
>way of defining large arrays.
>Is there ?

You need to read the readme that came with the compiler for faq's.  You need
to use the huge memory model and if you have an array over 64k declare it as huge. ---> huge double big_array[12000]




-------------------------------------------------------------------------------
      Murph                     "Government that governs the least
   Thomas Murphy                   Governs the best."  Jefferson
   many depts. UofU          all drabble is dregged up from my own mind. 
Technical Details
Message-ID: <1991Jun30.204752.5785@hellgate.utah.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!peruvian.utah.edu!tmurphy
References: <1972@contex.contex.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.ibm.pc.programmer
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!peruvian.utah.edu!tmurphy
From: tmurphy%peruvian.utah.edu@cs.utah.edu (Thomas Murphy)
Subject: Re: Porting software to the PC, 64K data structure barrier.
Date: 30 Jun 91 20:47:51 MDT
Message-ID: <1991Jun30.204752.5785@hellgate.utah.edu>
Keywords: PC, 64K struct size limitations, MSDOS
Organization: University of Utah CS Dept., Salt Lake City
References: <1972@contex.contex.com>