Slimelite BBS

Memory problems

Back to EMULATE

From Mike Bilow · 1996-04-05 15:55 · #73605 in EMULATE

Chris Chandler wrote in a message to Mike Bilow:

 MB> If you want to force an object into its own data segment when
 MB> using either compact or large model on the Borland compiler, then
 MB> declare and define the data object with the "_far" keyword.  If

 CC>         Would using the "huge" keyword not do the same thing? 

No.  A "far" object is in its own data segment, but only in one data segment.  A "huge" object is effectively in a chain of segments, each one only a single paragraph long.  The only use for huge objects is when a single object will be larger than a segment.
 
-- Mike


--- 
 * Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)