🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #242

Re: QBX Memory Problems

#242
From: Phillip Cooper
Date: Thu, 12 Nov 1992 16:09
26 lines
1387 bytes
In article <da.721294303@coombs> da@coombs.anu.edu.au (Daniel Austin) writes:
>bdwheele@silver.ucs.indiana.edu (Brian Wheeler) writes:
>
>[...]
>
>>/ah - puts arrays into the far heap.  rem $static (like before, it may be
>>	rem $dynamic.  Gimme a break..its been awhile :) will make the data
>>	space be allocated at compile time, not at run time.
>
>[...]
>
>REM $DYNAMIC causes data space to be allocated at RUN TIME.
>REM $STATIC causes data space to be allocated at COMPILE TIME.
>

One other note:  Arrays are ALWAYS dynamic in the QBX environment,
regardless of the REM $STATIC or REM $DYNAMIC statements.  As the
name implies, these statements are compiler directives.  QBX will
completely ignore them.

Also, if anything, /Ah will make your executable larger, and leave you
with less memory than before.  This is because additional instructions
are required to implement huge pointer arithmetic (which is what /Ah
does - it allows huge arrays).

Phil Cooper
Technical Details
Message-ID: <1992Nov12.160949.26634@microsoft.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!microsoft!wingnut!philco
References: <9211052103.AA07580@horton.jhuapl.edu> <BxEuD6.Ao8@usenet.ucs.indiana.edu> <da.721294303@coombs>

Show Full Headers
Complete Article Headers
Newsgroups: alt.lang.basic
Path: arc1-ca.pugleaf.net!sparky!uunet!microsoft!wingnut!philco
From: philco@microsoft.com (Phillip Cooper)
Subject: Re: QBX Memory Problems
Message-ID: <1992Nov12.160949.26634@microsoft.com>
Date: 12 Nov 92 16:09:49 GMT
Organization: Microsoft Corporation
References: <9211052103.AA07580@horton.jhuapl.edu> <BxEuD6.Ao8@usenet.ucs.indiana.edu> <da.721294303@coombs>
Lines: 26